/**
 * Helper function to find the common elements between two lists.
 *
 * @param list1 First list
 * @param list2 Second list
 * @return A list containing the common elements between the two input lists.
 */
fun findIntersection(list1: List<Any>, list2: List<Any>): List<Any> {

    val intersection = mutableListOf<Any>()
    for (item in list1) {
        if (item in list2) {
            intersection.add(item)
        }
    }
    return intersection
}
/**
 * Helper function to find the common elements between two lists.
 *
 * @param list1 First list
 * @param list2 Second list
 * @return A list containing the common elements between the two input lists.
 */
fun findIntersection(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * Helper function to find the common elements between two lists.
 *
 * @param list1 First list
 * @param list2 Second list
 * @return A list containing the common elements between the two input lists.
 */
fun findIntersection(list1: List<Any>, list2: List<Any>): List<Any> {

    val intersection = mutableListOf<Any>()
    for (item in list1) {
        if (item in list2) {
            intersection.add(item)
        }
    }
    return intersection
}