/**
 * This function takes a list of fruits as input and counts the total number of vowels in all the fruit names.
 *
 * @param fruits A list of fruit names
 * @return The total count of vowels in all the fruit names
 *
 * Example:
 * countVowels(listOf("apple", "banana", "grape")) -> 8
 */
fun countVowels(fruits: List<String>): Int {

    var vowelCount = 0

    for (fruit in fruits) {
        for (char in fruit) {
            if (char.toLowerCase() in listOf('a', 'e', 'i', 'o', 'u')) {
                vowelCount++
            }
        }
    }

    return vowelCount
}
/**
 * This function takes a list of fruits as input and counts the total number of vowels in all the fruit names.
 *
 * @param fruits A list of fruit names
 * @return The total count of vowels in all the fruit names
 *
 * Example:
 * countVowels(listOf("apple", "banana", "grape")) -> 8
 */
fun countVowels(fruits: List<String>): Int {
/**
 * This function takes a list of fruits as input and counts the total number of vowels in all the fruit names.
 *
 * @param fruits A list of fruit names
 * @return The total count of vowels in all the fruit names
 *
 * Example:
 * countVowels(listOf("apple", "banana", "grape")) -> 8
 */
fun countVowels(fruits: List<String>): Int {

    var vowelCount = 0

    for (fruit in fruits) {
        for (char in fruit) {
            if (char.toLowerCase() in listOf('a', 'e', 'i', 'o', 'u')) {
                vowelCount++
            }
        }
    }

    return vowelCount
}