/**
 * Given two tuples, returns the XOR of the elements that have the same index position in both tuples.
 *
 * @param tuple1 First tuple.
 * @param tuple2 Second tuple.
 * @return XOR of elements at the same index in tuple1 and tuple2.
 */
fun slicingAndXor(tuple1: List<Int>, tuple2: List<Int>): List<Int> {

    // Initialize an empty list to store the result
    val result = mutableListOf<Int>()
    
    // Find the length of the smaller tuple
    val length = minOf(tuple1.size, tuple2.size)
    
    // Iterate through the tuples using index position
    for (i in 0 until length) {
        // XOR the elements at the same index and append the result to the result list
        result.add(tuple1[i] xor tuple2[i])
    }
    
    return result
}
/**
 * Given two tuples, returns the XOR of the elements that have the same index position in both tuples.
 *
 * @param tuple1 First tuple.
 * @param tuple2 Second tuple.
 * @return XOR of elements at the same index in tuple1 and tuple2.
 */
fun slicingAndXor(tuple1: List<Int>, tuple2: List<Int>): List<Int> {
/**
 * Given two tuples, returns the XOR of the elements that have the same index position in both tuples.
 *
 * @param tuple1 First tuple.
 * @param tuple2 Second tuple.
 * @return XOR of elements at the same index in tuple1 and tuple2.
 */
fun slicingAndXor(tuple1: List<Int>, tuple2: List<Int>): List<Int> {

    // Initialize an empty list to store the result
    val result = mutableListOf<Int>()
    
    // Find the length of the smaller tuple
    val length = minOf(tuple1.size, tuple2.size)
    
    // Iterate through the tuples using index position
    for (i in 0 until length) {
        // XOR the elements at the same index and append the result to the result list
        result.add(tuple1[i] xor tuple2[i])
    }
    
    return result
}