/**
 * This function takes two sets as input and returns their intersection.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The intersection of set1 and set2.
 */
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 takes two sets as input and returns their intersection.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The intersection of set1 and set2.
 */
fun intersectionOfSets(set1: Set<Any>, set2: Set<Any>): Set<Any> {
/**
 * This function takes two sets as input and returns their intersection.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The intersection of set1 and set2.
 */
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
}