/**
 * This function checks if the given word has a vowel in the middle.
 *
 * @param word The word to check for middle vowel.
 * @return True if the middle character of the word is a vowel, False otherwise.
 */
fun hasMiddleVowel(word: String): Boolean {

    if (word.length % 2 != 0) {
        val middleIndex = word.length / 2
        val middleChar = word[middleIndex]

        return middleChar in listOf('a', 'e', 'i', 'o', 'u')
    }

    return false
}
/**
 * This function checks if the given word has a vowel in the middle.
 *
 * @param word The word to check for middle vowel.
 * @return True if the middle character of the word is a vowel, False otherwise.
 */
fun hasMiddleVowel(word: String): Boolean {
/**
 * This function checks if the given word has a vowel in the middle.
 *
 * @param word The word to check for middle vowel.
 * @return True if the middle character of the word is a vowel, False otherwise.
 */
fun hasMiddleVowel(word: String): Boolean {

    if (word.length % 2 != 0) {
        val middleIndex = word.length / 2
        val middleChar = word[middleIndex]

        return middleChar in listOf('a', 'e', 'i', 'o', 'u')
    }

    return false
}