/**
 * Given two lists, finds the intersection between them.
 *
 * @param elements1 The first list of elements
 * @param elements2 The second list of elements
 * @return A list containing the common elements between elements1 and elements2, preserving the order of occurrence.
 */
fun findIntersection(elements1: List<Any>, elements2: List<Any>): List<Any> {

    val intersection = elements1.filter { it in elements2 }
    return intersection
}
/**
 * Given two lists, finds the intersection between them.
 *
 * @param elements1 The first list of elements
 * @param elements2 The second list of elements
 * @return A list containing the common elements between elements1 and elements2, preserving the order of occurrence.
 */
fun findIntersection(elements1: List<Any>, elements2: List<Any>): List<Any> {
/**
 * Given two lists, finds the intersection between them.
 *
 * @param elements1 The first list of elements
 * @param elements2 The second list of elements
 * @return A list containing the common elements between elements1 and elements2, preserving the order of occurrence.
 */
fun findIntersection(elements1: List<Any>, elements2: List<Any>): List<Any> {

    val intersection = elements1.filter { it in elements2 }
    return intersection
}