/**
 * A function that takes a list of words as input and returns a map
 * with the count of vowels in each word.
 *
 * @param words A list of words
 * @return A map with words as keys and the count of vowels in each word as values.
 */
fun countVowelsInWords(words: List<String>): Map<String, Int> {

    // Initialize an empty map
    val vowelCounts = mutableMapOf<String, Int>()

    // Iterate through each word in the given list of words
    for (word in words) {
        // Initialize the count of vowels in the current word to 0
        var vowelCount = 0

        // Loop through each character in the word
        for (char in word) {
            // Check if the character is a vowel (a, e, i, o, or u)
            if (char.toLowerCase() in listOf('a', 'e', 'i', 'o', 'u')) {
                // Increment the vowel count by 1
                vowelCount++
            }
        }

        // Add the word and its vowel count to the map
        vowelCounts[word] = vowelCount
    }

    return vowelCounts
}
/**
 * A function that takes a list of words as input and returns a map
 * with the count of vowels in each word.
 *
 * @param words A list of words
 * @return A map with words as keys and the count of vowels in each word as values.
 */
fun countVowelsInWords(words: List<String>): Map<String, Int> {
/**
 * A function that takes a list of words as input and returns a map
 * with the count of vowels in each word.
 *
 * @param words A list of words
 * @return A map with words as keys and the count of vowels in each word as values.
 */
fun countVowelsInWords(words: List<String>): Map<String, Int> {

    // Initialize an empty map
    val vowelCounts = mutableMapOf<String, Int>()

    // Iterate through each word in the given list of words
    for (word in words) {
        // Initialize the count of vowels in the current word to 0
        var vowelCount = 0

        // Loop through each character in the word
        for (char in word) {
            // Check if the character is a vowel (a, e, i, o, or u)
            if (char.toLowerCase() in listOf('a', 'e', 'i', 'o', 'u')) {
                // Increment the vowel count by 1
                vowelCount++
            }
        }

        // Add the word and its vowel count to the map
        vowelCounts[word] = vowelCount
    }

    return vowelCounts
}