/**
 * This function finds the intersection of two sets.
 *
 * @param set1 The first set
 * @param set2 The second set
 * @return The intersection of the two sets
 */
fun intersectionOfSets(set1: Set<Any>, set2: Set<Any>): Set<Any> {

    val intersection = mutableSetOf<Any>()

    for (element in set1) {
        if (element in set2) {
            intersection.add(element)
        }
    }

    return intersection
}
/**
 * This function finds the intersection of two sets.
 *
 * @param set1 The first set
 * @param set2 The second set
 * @return The intersection of the two sets
 */
fun intersectionOfSets(set1: Set<Any>, set2: Set<Any>): Set<Any> {
/**
 * This function finds the intersection of two sets.
 *
 * @param set1 The first set
 * @param set2 The second set
 * @return The intersection of the two sets
 */
fun intersectionOfSets(set1: Set<Any>, set2: Set<Any>): Set<Any> {

    val intersection = mutableSetOf<Any>()

    for (element in set1) {
        if (element in set2) {
            intersection.add(element)
        }
    }

    return intersection
}