/**
 * This function counts the number of break statements required to access all elements in a given list.
 * It returns the index and total count of break statements used.
 */
fun countBreakStatements(numbers: List<Int>): Pair<Int, Int> {

    var count = 0  // Initialize break statement count
    var index = 0  // Initialize current index

    while (true) {
        if (index >= numbers.size) {
            // Add code to complete the exercise
            break  // Break the loop when all elements have been accessed
        }

        val currentNum = numbers[index]

        if (currentNum == index) {
            // Add code to complete the exercise
            break  // Break the loop when the condition is met
        }

        count++  // Increment break statement count
        index++  // Increment index
    }

    return Pair(index, count)
}
/**
 * This function counts the number of break statements required to access all elements in a given list.
 * It returns the index and total count of break statements used.
 */
fun countBreakStatements(numbers: List<Int>): Pair<Int, Int> {
/**
 * This function counts the number of break statements required to access all elements in a given list.
 * It returns the index and total count of break statements used.
 */
fun countBreakStatements(numbers: List<Int>): Pair<Int, Int> {

    var count = 0  // Initialize break statement count
    var index = 0  // Initialize current index

    while (true) {
        if (index >= numbers.size) {
            // Add code to complete the exercise
            break  // Break the loop when all elements have been accessed
        }

        val currentNum = numbers[index]

        if (currentNum == index) {
            // Add code to complete the exercise
            break  // Break the loop when the condition is met
        }

        count++  // Increment break statement count
        index++  // Increment index
    }

    return Pair(index, count)
}