/**
 * Given two sets, remove all common elements from both sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A Pair containing the updated set1 and set2 without any common elements.
 *
 * Example:
 * removeCommonElements(setOf(1, 2, 3, 4), setOf(3, 4, 5, 6))
 * Output: Pair(setOf(1, 2), setOf(5, 6))
 */
fun removeCommonElements(set1: MutableSet<Int>, set2: MutableSet<Int>): Pair<Set<Int>, Set<Int>> {

    // Find the common elements between the two sets
    val commonElements = set1.intersect(set2)

    // Remove the common elements from set1
    set1.removeAll(commonElements)

    // Remove the common elements from set2
    set2.removeAll(commonElements)

    return Pair(set1, set2)
}
/**
 * Given two sets, remove all common elements from both sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A Pair containing the updated set1 and set2 without any common elements.
 *
 * Example:
 * removeCommonElements(setOf(1, 2, 3, 4), setOf(3, 4, 5, 6))
 * Output: Pair(setOf(1, 2), setOf(5, 6))
 */
fun removeCommonElements(set1: MutableSet<Int>, set2: MutableSet<Int>): Pair<Set<Int>, Set<Int>> {
/**
 * Given two sets, remove all common elements from both sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A Pair containing the updated set1 and set2 without any common elements.
 *
 * Example:
 * removeCommonElements(setOf(1, 2, 3, 4), setOf(3, 4, 5, 6))
 * Output: Pair(setOf(1, 2), setOf(5, 6))
 */
fun removeCommonElements(set1: MutableSet<Int>, set2: MutableSet<Int>): Pair<Set<Int>, Set<Int>> {

    // Find the common elements between the two sets
    val commonElements = set1.intersect(set2)

    // Remove the common elements from set1
    set1.removeAll(commonElements)

    // Remove the common elements from set2
    set2.removeAll(commonElements)

    return Pair(set1, set2)
}