/**
 * Given two sets, returns the intersection of the two as a new set.
 */
fun getIntersection(set1: Set<Any>, set2: Set<Any>): Set<Any> {

    val intersection = mutableSetOf<Any>()
    // Iterate through set1 and check which items are also present in set2
    for (item in set1) {
        if (item in set2) {
            intersection.add(item)
        }
    }
    return intersection
}
/**
 * Given two sets, returns the intersection of the two as a new set.
 */
fun getIntersection(set1: Set<Any>, set2: Set<Any>): Set<Any> {
/**
 * Given two sets, returns the intersection of the two as a new set.
 */
fun getIntersection(set1: Set<Any>, set2: Set<Any>): Set<Any> {

    val intersection = mutableSetOf<Any>()
    // Iterate through set1 and check which items are also present in set2
    for (item in set1) {
        if (item in set2) {
            intersection.add(item)
        }
    }
    return intersection
}