/**
 * This exercise requires implementing a function that counts the number of vowels and consonants in a given word.
 *
 * @param word A string representing a word
 * @return A Pair containing the count of vowels and consonants respectively
 */
fun countVowelsAndConsonants(word: String): Pair<Int, Int> {

    val vowels = listOf('a', 'e', 'i', 'o', 'u')
    val consonants = listOf('b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z')
    var vowelsCount = 0
    var consonantsCount = 0

    for (letter in word) {
        val lowerCaseLetter = letter.toLowerCase()

        if (lowerCaseLetter in vowels) {
            vowelsCount++
        } else if (lowerCaseLetter in consonants) {
            consonantsCount++
        }
    }

    return Pair(vowelsCount, consonantsCount)
}
/**
 * This exercise requires implementing a function that counts the number of vowels and consonants in a given word.
 *
 * @param word A string representing a word
 * @return A Pair containing the count of vowels and consonants respectively
 */
fun countVowelsAndConsonants(word: String): Pair<Int, Int> {
/**
 * This exercise requires implementing a function that counts the number of vowels and consonants in a given word.
 *
 * @param word A string representing a word
 * @return A Pair containing the count of vowels and consonants respectively
 */
fun countVowelsAndConsonants(word: String): Pair<Int, Int> {

    val vowels = listOf('a', 'e', 'i', 'o', 'u')
    val consonants = listOf('b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z')
    var vowelsCount = 0
    var consonantsCount = 0

    for (letter in word) {
        val lowerCaseLetter = letter.toLowerCase()

        if (lowerCaseLetter in vowels) {
            vowelsCount++
        } else if (lowerCaseLetter in consonants) {
            consonantsCount++
        }
    }

    return Pair(vowelsCount, consonantsCount)
}