/**
 * This function finds the common elements between two sets and returns a new set.
 *
 * @param set1 First set
 * @param set2 Second set
 * @return New set containing the common elements between set1 and set2
 *
 * Example:
 * findCommonElements(setOf(1, 2, 3), setOf(2, 3, 4)) // Output: setOf(2, 3)
 */
fun findCommonElements(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    return set1.intersect(set2)
}
/**
 * This function finds the common elements between two sets and returns a new set.
 *
 * @param set1 First set
 * @param set2 Second set
 * @return New set containing the common elements between set1 and set2
 *
 * Example:
 * findCommonElements(setOf(1, 2, 3), setOf(2, 3, 4)) // Output: setOf(2, 3)
 */
fun findCommonElements(set1: Set<Int>, set2: Set<Int>): Set<Int> {
/**
 * This function finds the common elements between two sets and returns a new set.
 *
 * @param set1 First set
 * @param set2 Second set
 * @return New set containing the common elements between set1 and set2
 *
 * Example:
 * findCommonElements(setOf(1, 2, 3), setOf(2, 3, 4)) // Output: setOf(2, 3)
 */
fun findCommonElements(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    return set1.intersect(set2)
}