/**
 * This function takes two sets as input and returns a tuple containing the intersection of the sets.
 *
 * @param set1 First set
 * @param set2 Second set
 * @return Tuple containing the intersection of the sets
 */
fun intersectSets(set1: Set<*>, set2: Set<*>): Pair<Set<*>, Set<*>> {

    val intersection = set1.intersect(set2)
    return Pair(intersection, intersection)
}

// Exercise
/**
 * This function takes two sets as input and returns a tuple containing the intersection of the sets.
 *
 * @param set1 First set
 * @param set2 Second set
 * @return Tuple containing the intersection of the sets
 */
fun intersectSets(set1: Set<*>, set2: Set<*>): Pair<Set<*>, Set<*>> {
/**
 * This function takes two sets as input and returns a tuple containing the intersection of the sets.
 *
 * @param set1 First set
 * @param set2 Second set
 * @return Tuple containing the intersection of the sets
 */
fun intersectSets(set1: Set<*>, set2: Set<*>): Pair<Set<*>, Set<*>> {

    val intersection = set1.intersect(set2)
    return Pair(intersection, intersection)
}

// Exercise