/**
 * This function takes a word as input and returns the count of vowels and consonants in the word.
 *
 * @param word The input word
 * @return A Pair with two elements - the count of vowels and consonants in the word
 */
fun countVowelsConsonants(word: String): Pair<Int, Int> {

    val vowels = "aeiou"
    val consonants = "bcdfghjklmnpqrstvwxyz"
    var vowelsCount = 0
    var consonantsCount = 0

    var i = 0
    while (i < word.length) {
        if (word[i].toLowerCase() in vowels) {
            vowelsCount++
        } else if (word[i].toLowerCase() in consonants) {
            consonantsCount++
        }
        i++
    }

    return Pair(vowelsCount, consonantsCount)
}
/**
 * This function takes a word as input and returns the count of vowels and consonants in the word.
 *
 * @param word The input word
 * @return A Pair with two elements - the count of vowels and consonants in the word
 */
fun countVowelsConsonants(word: String): Pair<Int, Int> {
/**
 * This function takes a word as input and returns the count of vowels and consonants in the word.
 *
 * @param word The input word
 * @return A Pair with two elements - the count of vowels and consonants in the word
 */
fun countVowelsConsonants(word: String): Pair<Int, Int> {

    val vowels = "aeiou"
    val consonants = "bcdfghjklmnpqrstvwxyz"
    var vowelsCount = 0
    var consonantsCount = 0

    var i = 0
    while (i < word.length) {
        if (word[i].toLowerCase() in vowels) {
            vowelsCount++
        } else if (word[i].toLowerCase() in consonants) {
            consonantsCount++
        }
        i++
    }

    return Pair(vowelsCount, consonantsCount)
}