/**
 * Given two lists, converts them to sets and returns the intersection of the two sets.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return The intersection of the two lists as a set.
 */
fun convertListsToSet(list1: List<Any>, list2: List<Any>): Set<Any> {

    val set1 = list1.toSet()
    val set2 = list2.toSet()
    val intersection = set1.intersect(set2)
    return intersection
}
/**
 * Given two lists, converts them to sets and returns the intersection of the two sets.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return The intersection of the two lists as a set.
 */
fun convertListsToSet(list1: List<Any>, list2: List<Any>): Set<Any> {
/**
 * Given two lists, converts them to sets and returns the intersection of the two sets.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return The intersection of the two lists as a set.
 */
fun convertListsToSet(list1: List<Any>, list2: List<Any>): Set<Any> {

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