/**
 * This function takes in two lists, lst1 and lst2, and returns a list of indices where the elements of
 * lst1 are not equal to the corresponding elements of lst2 after updating.
 *
 * @param lst1 The first list of elements.
 * @param lst2 The second list of elements after updating.
 * @return A list of indices where the elements of lst1 are not equal to the corresponding elements of lst2.
 *
 * Example:
 * findUpdatedIndices(listOf(1, 2, 3, 4), listOf(2, 2, 6, 4)) // Output: [0, 2]
 */
fun findUpdatedIndices(lst1: List<Int>, lst2: List<Int>): List<Int> {

    val differences = mutableListOf<Int>()

    if (lst1.size != lst2.size) { // Checking if both lists have the same length
        return listOf(-1) // Return a list with -1 to indicate different sizes
    }

    for (i in lst1.indices) {
        if (lst1[i] != lst2[i]) { // Checking if the elements are not equal
            differences.add(i)
        }
    }

    return differences
}

// Sample usage
val result = findUpdatedIndices(listOf(-4, 2, 3, 4), listOf(2, 2, 6, 4))
/**
 * This function takes in two lists, lst1 and lst2, and returns a list of indices where the elements of
 * lst1 are not equal to the corresponding elements of lst2 after updating.
 *
 * @param lst1 The first list of elements.
 * @param lst2 The second list of elements after updating.
 * @return A list of indices where the elements of lst1 are not equal to the corresponding elements of lst2.
 *
 * Example:
 * findUpdatedIndices(listOf(1, 2, 3, 4), listOf(2, 2, 6, 4)) // Output: [0, 2]
 */
fun findUpdatedIndices(lst1: List<Int>, lst2: List<Int>): List<Int> {
/**
 * This function takes in two lists, lst1 and lst2, and returns a list of indices where the elements of
 * lst1 are not equal to the corresponding elements of lst2 after updating.
 *
 * @param lst1 The first list of elements.
 * @param lst2 The second list of elements after updating.
 * @return A list of indices where the elements of lst1 are not equal to the corresponding elements of lst2.
 *
 * Example:
 * findUpdatedIndices(listOf(1, 2, 3, 4), listOf(2, 2, 6, 4)) // Output: [0, 2]
 */
fun findUpdatedIndices(lst1: List<Int>, lst2: List<Int>): List<Int> {

    val differences = mutableListOf<Int>()

    if (lst1.size != lst2.size) { // Checking if both lists have the same length
        return listOf(-1) // Return a list with -1 to indicate different sizes
    }

    for (i in lst1.indices) {
        if (lst1[i] != lst2[i]) { // Checking if the elements are not equal
            differences.add(i)
        }
    }

    return differences
}

// Sample usage
val result = findUpdatedIndices(listOf(-4, 2, 3, 4), listOf(2, 2, 6, 4))