/**
 * Given a string 's', return a Pair containing the count of vowels and consonants in the string.
 * The string 's' may contain uppercase and lowercase alphabets.
 *
 * Examples:
 * countVowelsConsonants("Hello World") -> Pair(3, 7)
 * countVowelsConsonants("Biomedical Engineer") -> Pair(9, 9)
 * countVowelsConsonants("") -> Pair(0, 0)
 */
fun countVowelsConsonants(s: String): Pair<Int, Int> {

    val vowels = setOf('a', 'e', 'i', 'o', 'u')
    var vowelCount = 0
    var consonantCount = 0

    for (char in s.toLowerCase()) {
        if (char.isLetter()) {
            if (char in vowels) {
                vowelCount++
            } else {
                consonantCount++
            }
        }
    }

    return Pair(vowelCount, consonantCount)
}
/**
 * Given a string 's', return a Pair containing the count of vowels and consonants in the string.
 * The string 's' may contain uppercase and lowercase alphabets.
 *
 * Examples:
 * countVowelsConsonants("Hello World") -> Pair(3, 7)
 * countVowelsConsonants("Biomedical Engineer") -> Pair(9, 9)
 * countVowelsConsonants("") -> Pair(0, 0)
 */
fun countVowelsConsonants(s: String): Pair<Int, Int> {
/**
 * Given a string 's', return a Pair containing the count of vowels and consonants in the string.
 * The string 's' may contain uppercase and lowercase alphabets.
 *
 * Examples:
 * countVowelsConsonants("Hello World") -> Pair(3, 7)
 * countVowelsConsonants("Biomedical Engineer") -> Pair(9, 9)
 * countVowelsConsonants("") -> Pair(0, 0)
 */
fun countVowelsConsonants(s: String): Pair<Int, Int> {

    val vowels = setOf('a', 'e', 'i', 'o', 'u')
    var vowelCount = 0
    var consonantCount = 0

    for (char in s.toLowerCase()) {
        if (char.isLetter()) {
            if (char in vowels) {
                vowelCount++
            } else {
                consonantCount++
            }
        }
    }

    return Pair(vowelCount, consonantCount)
}