/**
 * This function counts the number of vowels and consonants in a sentence.
 *
 * @param sentence The input sentence.
 * @return Pair<Int, Int> A pair containing the count of vowels and consonants in the sentence.
 */
fun countVowelsConsonants(sentence: String): Pair<Int, Int> {

    var vowels = 0
    var consonants = 0
    // Removing white spaces and converting sentence to lowercase for easier processing
    val processedSentence = sentence.replace(" ", "").toLowerCase()
    for (char in processedSentence) {
        if (char.isLetter()) {
            if (char in listOf('a', 'e', 'i', 'o', 'u')) {
                vowels++
            } else {
                consonants++
            }
        }
    }
    return Pair(vowels, consonants)
}
/**
 * This function counts the number of vowels and consonants in a sentence.
 *
 * @param sentence The input sentence.
 * @return Pair<Int, Int> A pair containing the count of vowels and consonants in the sentence.
 */
fun countVowelsConsonants(sentence: String): Pair<Int, Int> {
/**
 * This function counts the number of vowels and consonants in a sentence.
 *
 * @param sentence The input sentence.
 * @return Pair<Int, Int> A pair containing the count of vowels and consonants in the sentence.
 */
fun countVowelsConsonants(sentence: String): Pair<Int, Int> {

    var vowels = 0
    var consonants = 0
    // Removing white spaces and converting sentence to lowercase for easier processing
    val processedSentence = sentence.replace(" ", "").toLowerCase()
    for (char in processedSentence) {
        if (char.isLetter()) {
            if (char in listOf('a', 'e', 'i', 'o', 'u')) {
                vowels++
            } else {
                consonants++
            }
        }
    }
    return Pair(vowels, consonants)
}