/**
 * This function counts the number of vowels in a given list of words and returns a map
 * with each word as the key and its corresponding vowel count as the value.
 */
fun countVowels(words: List<String>): Map<String, Int> {

    val vowelCount = mutableMapOf<String, Int>()

    for (word in words) {
        var count = 0

        for (char in word) {
            if (char.toLowerCase() in listOf('a', 'e', 'i', 'o', 'u')) {
                count++
            }
        }

        vowelCount[word] = count
    }

    return vowelCount
}
/**
 * This function counts the number of vowels in a given list of words and returns a map
 * with each word as the key and its corresponding vowel count as the value.
 */
fun countVowels(words: List<String>): Map<String, Int> {
/**
 * This function counts the number of vowels in a given list of words and returns a map
 * with each word as the key and its corresponding vowel count as the value.
 */
fun countVowels(words: List<String>): Map<String, Int> {

    val vowelCount = mutableMapOf<String, Int>()

    for (word in words) {
        var count = 0

        for (char in word) {
            if (char.toLowerCase() in listOf('a', 'e', 'i', 'o', 'u')) {
                count++
            }
        }

        vowelCount[word] = count
    }

    return vowelCount
}