/**
 * This function takes an integer n as input and returns the count of even and odd numbers in the range from 0 to n-1.
 */
fun countEvenAndOddNumbers(n: Int): Pair<Int, Int> {

    var countEven = 0
    var countOdd = 0

    // Iterate through numbers from 0 to n-1
    for (num in 0 until n) {
        // Check if the number is even using bitwise AND operator
        if (num and 1 == 0) {
            countEven++
        } else {
            countOdd++
        }
    }

    return Pair(countEven, countOdd)
}
/**
 * This function takes an integer n as input and returns the count of even and odd numbers in the range from 0 to n-1.
 */
fun countEvenAndOddNumbers(n: Int): Pair<Int, Int> {
/**
 * This function takes an integer n as input and returns the count of even and odd numbers in the range from 0 to n-1.
 */
fun countEvenAndOddNumbers(n: Int): Pair<Int, Int> {

    var countEven = 0
    var countOdd = 0

    // Iterate through numbers from 0 to n-1
    for (num in 0 until n) {
        // Check if the number is even using bitwise AND operator
        if (num and 1 == 0) {
            countEven++
        } else {
            countOdd++
        }
    }

    return Pair(countEven, countOdd)
}