/**
 * Given two lists 'a" and 'b`, this function finds and returns the common elements
 * between them using the XOR operator and the range function.
 *
 * @param a The first list.
 * @param b The second list.
 * @return A list containing the common elements between 'a" and 'b`.
 */
fun findCommonElements(a: List<Int>, b: List<Int>): List<Int> {

    val commonElements = mutableListOf<Int>()

    for (element in a) {
        if (element in b) {
            commonElements.add(element)
        }
    }

    return commonElements
}

// Example usage
/**
 * Given two lists 'a" and 'b`, this function finds and returns the common elements
 * between them using the XOR operator and the range function.
 *
 * @param a The first list.
 * @param b The second list.
 * @return A list containing the common elements between 'a" and 'b`.
 */
fun findCommonElements(a: List<Int>, b: List<Int>): List<Int> {
/**
 * Given two lists 'a" and 'b`, this function finds and returns the common elements
 * between them using the XOR operator and the range function.
 *
 * @param a The first list.
 * @param b The second list.
 * @return A list containing the common elements between 'a" and 'b`.
 */
fun findCommonElements(a: List<Int>, b: List<Int>): List<Int> {

    val commonElements = mutableListOf<Int>()

    for (element in a) {
        if (element in b) {
            commonElements.add(element)
        }
    }

    return commonElements
}

// Example usage