/**
 * This function takes three sets as arguments and returns a new set that contains the common elements
 * that are present in all three input sets.
 */
fun findCommonElements(set1: Set<Int>, set2: Set<Int>, set3: Set<Int>): Set<Int> {

    // Find the common elements using filter function
    return set1.filter { it in set2 && it in set3 }.toSet()
}
/**
 * This function takes three sets as arguments and returns a new set that contains the common elements
 * that are present in all three input sets.
 */
fun findCommonElements(set1: Set<Int>, set2: Set<Int>, set3: Set<Int>): Set<Int> {
/**
 * This function takes three sets as arguments and returns a new set that contains the common elements
 * that are present in all three input sets.
 */
fun findCommonElements(set1: Set<Int>, set2: Set<Int>, set3: Set<Int>): Set<Int> {

    // Find the common elements using filter function
    return set1.filter { it in set2 && it in set3 }.toSet()
}