/**
 * This function takes two sets as input and returns a new set which contains the intersection of the two sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The intersection of the two sets.
 */
fun intersectionSets(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    val intersection = mutableSetOf<Int>()

    for (element1 in set1) {
        for (element2 in set2) {
            if (element1 == element2) {
                intersection.add(element1)
            }
        }
    }

    return intersection
}
/**
 * This function takes two sets as input and returns a new set which contains the intersection of the two sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The intersection of the two sets.
 */
fun intersectionSets(set1: Set<Int>, set2: Set<Int>): Set<Int> {
/**
 * This function takes two sets as input and returns a new set which contains the intersection of the two sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The intersection of the two sets.
 */
fun intersectionSets(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    val intersection = mutableSetOf<Int>()

    for (element1 in set1) {
        for (element2 in set2) {
            if (element1 == element2) {
                intersection.add(element1)
            }
        }
    }

    return intersection
}