/**
 * Given two sets, remove the common elements between them and return a new set.
 *
 * @param set1 First set containing elements
 * @param set2 Second set containing elements
 * @return New set after removing common elements
 *
 * Example:
 * removeCommonElements(setOf(1, 2, 3, 4), setOf(3, 4, 5, 6)) -> setOf(1, 2, 5, 6)
 */
fun removeCommonElements(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    val intersection = set1.intersect(set2)  // Find the common elements between the two sets
    val result = (set1 - intersection) union (set2 - intersection)  // Remove common elements from both sets

    return result
}
/**
 * Given two sets, remove the common elements between them and return a new set.
 *
 * @param set1 First set containing elements
 * @param set2 Second set containing elements
 * @return New set after removing common elements
 *
 * Example:
 * removeCommonElements(setOf(1, 2, 3, 4), setOf(3, 4, 5, 6)) -> setOf(1, 2, 5, 6)
 */
fun removeCommonElements(set1: Set<Int>, set2: Set<Int>): Set<Int> {
/**
 * Given two sets, remove the common elements between them and return a new set.
 *
 * @param set1 First set containing elements
 * @param set2 Second set containing elements
 * @return New set after removing common elements
 *
 * Example:
 * removeCommonElements(setOf(1, 2, 3, 4), setOf(3, 4, 5, 6)) -> setOf(1, 2, 5, 6)
 */
fun removeCommonElements(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    val intersection = set1.intersect(set2)  // Find the common elements between the two sets
    val result = (set1 - intersection) union (set2 - intersection)  // Remove common elements from both sets

    return result
}