/**
 * This function takes in two lists and returns a new list containing the intersection of the two lists
 * using list comprehension and if-else statements.
 *
 * @param list1 First list
 * @param list2 Second list
 * @return New list containing the intersection of list1 and list2
 */
fun intersectionOfLists(list1: List<Any>, list2: List<Any>): List<Any> {

    // Implement the logic to find the intersection using list comprehension and if-else statements
    val intersects = list1.filter { it in list2 }

    return intersects
}
/**
 * This function takes in two lists and returns a new list containing the intersection of the two lists
 * using list comprehension and if-else statements.
 *
 * @param list1 First list
 * @param list2 Second list
 * @return New list containing the intersection of list1 and list2
 */
fun intersectionOfLists(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * This function takes in two lists and returns a new list containing the intersection of the two lists
 * using list comprehension and if-else statements.
 *
 * @param list1 First list
 * @param list2 Second list
 * @return New list containing the intersection of list1 and list2
 */
fun intersectionOfLists(list1: List<Any>, list2: List<Any>): List<Any> {

    // Implement the logic to find the intersection using list comprehension and if-else statements
    val intersects = list1.filter { it in list2 }

    return intersects
}