/**
 * This function takes a list of words and returns the count of vowels in each word using a for loop and the enumerate function.
 */
fun countVowelsInWords(words: List<String>): List<Int> {

    val vowelCount = mutableListOf<Int>()
    for (word in words) {
        var count = 0
        for (letter in word) {
            if (letter.toLowerCase() in listOf('a', 'e', 'i', 'o', 'u')) {
                count++
            }
        }
        vowelCount.add(count)
    }
    return vowelCount
}
/**
 * This function takes a list of words and returns the count of vowels in each word using a for loop and the enumerate function.
 */
fun countVowelsInWords(words: List<String>): List<Int> {
/**
 * This function takes a list of words and returns the count of vowels in each word using a for loop and the enumerate function.
 */
fun countVowelsInWords(words: List<String>): List<Int> {

    val vowelCount = mutableListOf<Int>()
    for (word in words) {
        var count = 0
        for (letter in word) {
            if (letter.toLowerCase() in listOf('a', 'e', 'i', 'o', 'u')) {
                count++
            }
        }
        vowelCount.add(count)
    }
    return vowelCount
}