/**
 * Given two sets, find the common elements between them.
 *
 * @param set1 First set
 * @param set2 Second set
 * @return Set containing the common elements
 *
 * Example:
 * commonElements(setOf(1, 2, 3, 4), setOf(3, 4, 5, 6)) // Output: setOf(3, 4)
 */
fun commonElements(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    return set1.intersect(set2)
}
/**
 * Given two sets, find the common elements between them.
 *
 * @param set1 First set
 * @param set2 Second set
 * @return Set containing the common elements
 *
 * Example:
 * commonElements(setOf(1, 2, 3, 4), setOf(3, 4, 5, 6)) // Output: setOf(3, 4)
 */
fun commonElements(set1: Set<Int>, set2: Set<Int>): Set<Int> {
/**
 * Given two sets, find the common elements between them.
 *
 * @param set1 First set
 * @param set2 Second set
 * @return Set containing the common elements
 *
 * Example:
 * commonElements(setOf(1, 2, 3, 4), setOf(3, 4, 5, 6)) // Output: setOf(3, 4)
 */
fun commonElements(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    return set1.intersect(set2)
}