Contact: aviboots(AT)netvision.net.il
39,845 questions
51,766 answers
573 users
fun removeCommonLetters(word1: String, word2: String): String { return word1.filter { it !in word2 } } fun main() { val word1 = "forest" val word2 = "tor" val result = removeCommonLetters(word1, word2) println(result) } /* run: fes */