/**
 * This function checks if the XOR of two numbers is present in the given list and returns a new list with the
 * elements that satisfy the condition.
 *
 * @param x The first number.
 * @param y The second number.
 * @param lst The input list.
 * @return A new list containing elements from the input list that satisfy the condition.
 */
fun xorListConditional(x: Int, y: Int, lst: List<Int>): List<Int> {

    val result = mutableListOf<Int>()
    
    for (elem in lst) {
        if ((x xor y) == elem) {  // Check if XOR of x and y is equal to elem
            result.add(elem)
        }
    }
    
    return result
}
/**
 * This function checks if the XOR of two numbers is present in the given list and returns a new list with the
 * elements that satisfy the condition.
 *
 * @param x The first number.
 * @param y The second number.
 * @param lst The input list.
 * @return A new list containing elements from the input list that satisfy the condition.
 */
fun xorListConditional(x: Int, y: Int, lst: List<Int>): List<Int> {
/**
 * This function checks if the XOR of two numbers is present in the given list and returns a new list with the
 * elements that satisfy the condition.
 *
 * @param x The first number.
 * @param y The second number.
 * @param lst The input list.
 * @return A new list containing elements from the input list that satisfy the condition.
 */
fun xorListConditional(x: Int, y: Int, lst: List<Int>): List<Int> {

    val result = mutableListOf<Int>()
    
    for (elem in lst) {
        if ((x xor y) == elem) {  // Check if XOR of x and y is equal to elem
            result.add(elem)
        }
    }
    
    return result
}