/**
 * This exercise focuses on nested loops and slicing. The code replaces all vowels in a list of words with the '@' symbol.
 *
 * @param words A list of strings.
 * @return A new list with vowels replaced by '@'.
 */
fun replaceVowels(words: List<String>): List<String> {

    val replacedWords = mutableListOf<String>()
    
    for (word in words) {
        var replacedWord = ""
        for (letter in word) {
            if (letter.toLowerCase() in listOf('a', 'e', 'i', 'o', 'u')) {
                replacedWord += "@"
            } else {
                replacedWord += letter
            }
        }
        replacedWords.add(replacedWord)
    }
    
    return replacedWords
}
/**
 * This exercise focuses on nested loops and slicing. The code replaces all vowels in a list of words with the '@' symbol.
 *
 * @param words A list of strings.
 * @return A new list with vowels replaced by '@'.
 */
fun replaceVowels(words: List<String>): List<String> {
/**
 * This exercise focuses on nested loops and slicing. The code replaces all vowels in a list of words with the '@' symbol.
 *
 * @param words A list of strings.
 * @return A new list with vowels replaced by '@'.
 */
fun replaceVowels(words: List<String>): List<String> {

    val replacedWords = mutableListOf<String>()
    
    for (word in words) {
        var replacedWord = ""
        for (letter in word) {
            if (letter.toLowerCase() in listOf('a', 'e', 'i', 'o', 'u')) {
                replacedWord += "@"
            } else {
                replacedWord += letter
            }
        }
        replacedWords.add(replacedWord)
    }
    
    return replacedWords
}