/**
 * This exercise focuses on the intersection of two lists using the '==' operator and list methods.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A new list containing the elements that are common in both list1 and list2.
 */
fun intersectionEqualListMethods(list1: List<Any>, list2: List<Any>): List<Any> {

    return (list1.toSet() intersect list2.toSet()).toList()
}
/**
 * This exercise focuses on the intersection of two lists using the '==' operator and list methods.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A new list containing the elements that are common in both list1 and list2.
 */
fun intersectionEqualListMethods(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * This exercise focuses on the intersection of two lists using the '==' operator and list methods.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A new list containing the elements that are common in both list1 and list2.
 */
fun intersectionEqualListMethods(list1: List<Any>, list2: List<Any>): List<Any> {

    return (list1.toSet() intersect list2.toSet()).toList()
}