/**
 * This function takes two sets set1 and set2 as input and returns a new set
 * containing only the elements that are present in both sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A new set containing the elements that are present in both set1 and set2.
 *
 * Example:
 * val set1 = setOf(1, 2, 3, 4)
 * val set2 = setOf(3, 4, 5, 6)
 * findUniqueElements(set1, set2) // Output: [3, 4]
 */
fun findUniqueElements(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    // Find the intersection of set1 and set2 using the intersect function
    val intersection = set1.intersect(set2)

    return intersection
}
/**
 * This function takes two sets set1 and set2 as input and returns a new set
 * containing only the elements that are present in both sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A new set containing the elements that are present in both set1 and set2.
 *
 * Example:
 * val set1 = setOf(1, 2, 3, 4)
 * val set2 = setOf(3, 4, 5, 6)
 * findUniqueElements(set1, set2) // Output: [3, 4]
 */
fun findUniqueElements(set1: Set<Int>, set2: Set<Int>): Set<Int> {
/**
 * This function takes two sets set1 and set2 as input and returns a new set
 * containing only the elements that are present in both sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A new set containing the elements that are present in both set1 and set2.
 *
 * Example:
 * val set1 = setOf(1, 2, 3, 4)
 * val set2 = setOf(3, 4, 5, 6)
 * findUniqueElements(set1, set2) // Output: [3, 4]
 */
fun findUniqueElements(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    // Find the intersection of set1 and set2 using the intersect function
    val intersection = set1.intersect(set2)

    return intersection
}