/**
 * Given two sets, return a new set that contains only the common elements between them.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A new set containing the common elements.
 *
 * Example:
 * val set1 = setOf(1, 3, 5, 7)
 * val set2 = setOf(2, 4, 6, 8)
 * findIntersection(set1, set2) // Output: emptySet()
 * val set1 = setOf(1, 3, 5, 7)
 * val set2 = setOf(3, 5, 7, 9)
 * findIntersection(set1, set2) // Output: setOf(3, 5, 7)
 */
fun findIntersection(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    // Find the intersection of the two sets
    val intersection = set1.intersect(set2)
    return intersection
}
/**
 * Given two sets, return a new set that contains only the common elements between them.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A new set containing the common elements.
 *
 * Example:
 * val set1 = setOf(1, 3, 5, 7)
 * val set2 = setOf(2, 4, 6, 8)
 * findIntersection(set1, set2) // Output: emptySet()
 * val set1 = setOf(1, 3, 5, 7)
 * val set2 = setOf(3, 5, 7, 9)
 * findIntersection(set1, set2) // Output: setOf(3, 5, 7)
 */
fun findIntersection(set1: Set<Int>, set2: Set<Int>): Set<Int> {
/**
 * Given two sets, return a new set that contains only the common elements between them.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A new set containing the common elements.
 *
 * Example:
 * val set1 = setOf(1, 3, 5, 7)
 * val set2 = setOf(2, 4, 6, 8)
 * findIntersection(set1, set2) // Output: emptySet()
 * val set1 = setOf(1, 3, 5, 7)
 * val set2 = setOf(3, 5, 7, 9)
 * findIntersection(set1, set2) // Output: setOf(3, 5, 7)
 */
fun findIntersection(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    // Find the intersection of the two sets
    val intersection = set1.intersect(set2)
    return intersection
}