/**
 * Given a list of words, replace all vowels in each word with the letter 'x'
 *
 * @param words A list of strings
 * @return The modified list of words with vowels replaced by 'x'
 */
fun replaceVowelsWithX(words: List<String>): List<String> {

    return words.map { word ->
        word.map { char ->
            if (char in listOf('a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U')) {
                'x'
            } else {
                char
            }
        }.joinToString("")
    }
}
/**
 * Given a list of words, replace all vowels in each word with the letter 'x'
 *
 * @param words A list of strings
 * @return The modified list of words with vowels replaced by 'x'
 */
fun replaceVowelsWithX(words: List<String>): List<String> {
/**
 * Given a list of words, replace all vowels in each word with the letter 'x'
 *
 * @param words A list of strings
 * @return The modified list of words with vowels replaced by 'x'
 */
fun replaceVowelsWithX(words: List<String>): List<String> {

    return words.map { word ->
        word.map { char ->
            if (char in listOf('a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U')) {
                'x'
            } else {
                char
            }
        }.joinToString("")
    }
}