/**
 * This function calculates the intersection of two lists using set comprehension.
 *
 * @param list1 the first list
 * @param list2 the second list
 * @return the intersection of the two lists
 */
fun calculateIntersection(list1: List<Any>, list2: List<Any>): Set<Any> {

    val set1 = list1.toSet()
    val set2 = list2.toSet()
    val intersection = set1.intersect(set2)

    return intersection
}
/**
 * This function calculates the intersection of two lists using set comprehension.
 *
 * @param list1 the first list
 * @param list2 the second list
 * @return the intersection of the two lists
 */
fun calculateIntersection(list1: List<Any>, list2: List<Any>): Set<Any> {
/**
 * This function calculates the intersection of two lists using set comprehension.
 *
 * @param list1 the first list
 * @param list2 the second list
 * @return the intersection of the two lists
 */
fun calculateIntersection(list1: List<Any>, list2: List<Any>): Set<Any> {

    val set1 = list1.toSet()
    val set2 = list2.toSet()
    val intersection = set1.intersect(set2)

    return intersection
}