/**
 * This function returns the intersection of two lists.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A new list containing the elements common to both input lists.
 */
fun intersectionOfTwoLists(list1: List<Any>, list2: List<Any>): List<Any> {

    return list1.filter { element -> element in list2 }
}
/**
 * This function returns the intersection of two lists.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A new list containing the elements common to both input lists.
 */
fun intersectionOfTwoLists(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * This function returns the intersection of two lists.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A new list containing the elements common to both input lists.
 */
fun intersectionOfTwoLists(list1: List<Any>, list2: List<Any>): List<Any> {

    return list1.filter { element -> element in list2 }
}