/**
 * This function takes in two lists and compares their elements using the "Not Equal" operator.
 * It uses the 'continue' statement to skip to the next iteration when a condition is met.
 *
 * @param lst1 First list to compare
 * @param lst2 Second list to compare
 * @return A list of tuples containing the index and elements from lst1 that are not equal to the corresponding
 * elements in lst2.
 *
 * Example:
 * checkValues(listOf(1, 2, 3, 4), listOf(1, 5, 3, 6))
 * Output: [(1, 2), (3, 4)]
 */
fun checkValues(lst1: List<Int>, lst2: List<Int>): List<Pair<Int, Int>> {

    val result = mutableListOf<Pair<Int, Int>>() // List to store the index and elements that are not equal

    for (i in lst1.indices) {
        if (lst1[i] != lst2[i]) {
            result.add(i to lst1[i])
        } else {
            continue // Skip to the next iteration when lst1[i] is equal to lst2[i]
        }
    }

    return result
}
/**
 * This function takes in two lists and compares their elements using the "Not Equal" operator.
 * It uses the 'continue' statement to skip to the next iteration when a condition is met.
 *
 * @param lst1 First list to compare
 * @param lst2 Second list to compare
 * @return A list of tuples containing the index and elements from lst1 that are not equal to the corresponding
 * elements in lst2.
 *
 * Example:
 * checkValues(listOf(1, 2, 3, 4), listOf(1, 5, 3, 6))
 * Output: [(1, 2), (3, 4)]
 */
fun checkValues(lst1: List<Int>, lst2: List<Int>): List<Pair<Int, Int>> {
/**
 * This function takes in two lists and compares their elements using the "Not Equal" operator.
 * It uses the 'continue' statement to skip to the next iteration when a condition is met.
 *
 * @param lst1 First list to compare
 * @param lst2 Second list to compare
 * @return A list of tuples containing the index and elements from lst1 that are not equal to the corresponding
 * elements in lst2.
 *
 * Example:
 * checkValues(listOf(1, 2, 3, 4), listOf(1, 5, 3, 6))
 * Output: [(1, 2), (3, 4)]
 */
fun checkValues(lst1: List<Int>, lst2: List<Int>): List<Pair<Int, Int>> {

    val result = mutableListOf<Pair<Int, Int>>() // List to store the index and elements that are not equal

    for (i in lst1.indices) {
        if (lst1[i] != lst2[i]) {
            result.add(i to lst1[i])
        } else {
            continue // Skip to the next iteration when lst1[i] is equal to lst2[i]
        }
    }

    return result
}