/**
 * This function takes two lists as input, performs XOR operation on the elements of the lists,
 * and then concatenates the result into a single string. The XOR operator (^) returns 1 when the
 * corresponding bits of two operands are different, and 0 when they are the same.
 *
 * @param list1 A list of integers.
 * @param list2 A list of integers.
 * @return A string: The concatenation of the XOR results.
 */
fun xorAndConcatenate(list1: List<Int>, list2: List<Int>): String {

    var result = ""
    for (i in 0 until minOf(list1.size, list2.size)) {
        val xorResult = list1[i] xor list2[i]
        result += xorResult.toString()
    }
    return result
}
/**
 * This function takes two lists as input, performs XOR operation on the elements of the lists,
 * and then concatenates the result into a single string. The XOR operator (^) returns 1 when the
 * corresponding bits of two operands are different, and 0 when they are the same.
 *
 * @param list1 A list of integers.
 * @param list2 A list of integers.
 * @return A string: The concatenation of the XOR results.
 */
fun xorAndConcatenate(list1: List<Int>, list2: List<Int>): String {
/**
 * This function takes two lists as input, performs XOR operation on the elements of the lists,
 * and then concatenates the result into a single string. The XOR operator (^) returns 1 when the
 * corresponding bits of two operands are different, and 0 when they are the same.
 *
 * @param list1 A list of integers.
 * @param list2 A list of integers.
 * @return A string: The concatenation of the XOR results.
 */
fun xorAndConcatenate(list1: List<Int>, list2: List<Int>): String {

    var result = ""
    for (i in 0 until minOf(list1.size, list2.size)) {
        val xorResult = list1[i] xor list2[i]
        result += xorResult.toString()
    }
    return result
}