/**
 * Given two sets, set1 and set2, return a new set that contains elements present in both sets.
 *
 * @param set1 First set of elements
 * @param set2 Second set of elements
 * @return A new set containing elements present in both set1 and set2
 */
fun filterSet(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    val intersectionSet = set1.intersect(set2).toSet()
    return intersectionSet
}
/**
 * Given two sets, set1 and set2, return a new set that contains elements present in both sets.
 *
 * @param set1 First set of elements
 * @param set2 Second set of elements
 * @return A new set containing elements present in both set1 and set2
 */
fun filterSet(set1: Set<Int>, set2: Set<Int>): Set<Int> {
/**
 * Given two sets, set1 and set2, return a new set that contains elements present in both sets.
 *
 * @param set1 First set of elements
 * @param set2 Second set of elements
 * @return A new set containing elements present in both set1 and set2
 */
fun filterSet(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    val intersectionSet = set1.intersect(set2).toSet()
    return intersectionSet
}