/**
 * This exercise tests your understanding of nested if statements and tuples.
 *
 * Given a list of tuples, determine if there is any tuple that contains two consecutive numbers.
 *
 * @param values A list of tuples containing integer values.
 * @return True if there is any tuple with two consecutive numbers, False otherwise.
 */
fun nestedTupleIfStatement(values: List<Pair<Int, Int>>): Boolean {

    for (tup in values) {  // iterate over each tuple in the list
        if (tup.first + 1 == tup.second || tup.first - 1 == tup.second) {  // check if the two elements are consecutive
            return true
        }
    }
    return false
}
/**
 * This exercise tests your understanding of nested if statements and tuples.
 *
 * Given a list of tuples, determine if there is any tuple that contains two consecutive numbers.
 *
 * @param values A list of tuples containing integer values.
 * @return True if there is any tuple with two consecutive numbers, False otherwise.
 */
fun nestedTupleIfStatement(values: List<Pair<Int, Int>>): Boolean {
/**
 * This exercise tests your understanding of nested if statements and tuples.
 *
 * Given a list of tuples, determine if there is any tuple that contains two consecutive numbers.
 *
 * @param values A list of tuples containing integer values.
 * @return True if there is any tuple with two consecutive numbers, False otherwise.
 */
fun nestedTupleIfStatement(values: List<Pair<Int, Int>>): Boolean {

    for (tup in values) {  // iterate over each tuple in the list
        if (tup.first + 1 == tup.second || tup.first - 1 == tup.second) {  // check if the two elements are consecutive
            return true
        }
    }
    return false
}