/**
 * This function takes two sets as arguments and returns the intersection of the two sets using set comprehension.
 */
fun intersectionOfSets(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    // Find the intersection of set1 and set2 using set comprehension
    val result = set1.filter { it in set2 }.toSet()
    return result
}
/**
 * This function takes two sets as arguments and returns the intersection of the two sets using set comprehension.
 */
fun intersectionOfSets(set1: Set<Int>, set2: Set<Int>): Set<Int> {
/**
 * This function takes two sets as arguments and returns the intersection of the two sets using set comprehension.
 */
fun intersectionOfSets(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    // Find the intersection of set1 and set2 using set comprehension
    val result = set1.filter { it in set2 }.toSet()
    return result
}