/**
 * This function takes in two lists and returns the intersection of the two lists.
 *
 * @param list1 The first list
 * @param list2 The second list
 * @return The intersection of the two lists
 */
fun intersectionLists(list1: List<Any>, list2: List<Any>): List<Any> {

    val intersection = mutableListOf<Any>()  // Initialize an empty list to store the intersection

    for (item1 in list1) {  // Iterate through each item in the first list
        for (item2 in list2) {  // Iterate through each item in the second list
            if (item1 == item2) {  // Check if the item in the first list is equal to the item in the second list
                intersection.add(item1)  // If equal, append the item to the intersection list
            }
        }
    }

    return intersection
}
/**
 * This function takes in two lists and returns the intersection of the two lists.
 *
 * @param list1 The first list
 * @param list2 The second list
 * @return The intersection of the two lists
 */
fun intersectionLists(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * This function takes in two lists and returns the intersection of the two lists.
 *
 * @param list1 The first list
 * @param list2 The second list
 * @return The intersection of the two lists
 */
fun intersectionLists(list1: List<Any>, list2: List<Any>): List<Any> {

    val intersection = mutableListOf<Any>()  // Initialize an empty list to store the intersection

    for (item1 in list1) {  // Iterate through each item in the first list
        for (item2 in list2) {  // Iterate through each item in the second list
            if (item1 == item2) {  // Check if the item in the first list is equal to the item in the second list
                intersection.add(item1)  // If equal, append the item to the intersection list
            }
        }
    }

    return intersection
}