/**
 * This function takes two lists as input and returns their intersection.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A list containing the common elements from both input lists.
 */
fun intersectSets(list1: List<Any>, list2: List<Any>): List<Any> {

    return (list1.toSet() intersect list2.toSet()).toList()
}
/**
 * This function takes two lists as input and returns their intersection.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A list containing the common elements from both input lists.
 */
fun intersectSets(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * This function takes two lists as input and returns their intersection.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A list containing the common elements from both input lists.
 */
fun intersectSets(list1: List<Any>, list2: List<Any>): List<Any> {

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