/**
 * This function finds the intersection of two arrays using the 'in' operator.
 *
 * @param arr1 First array
 * @param arr2 Second array
 * @return Intersection of the two arrays
 */
fun intersectionArrays(arr1: List<Any>, arr2: List<Any>): List<Any> {

    val intersection = mutableListOf<Any>()

    for (elem in arr1) {
        if (elem in arr2 && elem !in intersection) {
            intersection.add(elem)
        }
    }

    return intersection
}
/**
 * This function finds the intersection of two arrays using the 'in' operator.
 *
 * @param arr1 First array
 * @param arr2 Second array
 * @return Intersection of the two arrays
 */
fun intersectionArrays(arr1: List<Any>, arr2: List<Any>): List<Any> {
/**
 * This function finds the intersection of two arrays using the 'in' operator.
 *
 * @param arr1 First array
 * @param arr2 Second array
 * @return Intersection of the two arrays
 */
fun intersectionArrays(arr1: List<Any>, arr2: List<Any>): List<Any> {

    val intersection = mutableListOf<Any>()

    for (elem in arr1) {
        if (elem in arr2 && elem !in intersection) {
            intersection.add(elem)
        }
    }

    return intersection
}