/**
 * Given two sets, remove all common elements from both sets.
 *
 * @param set1 First set of elements
 * @param set2 Second set of elements
 * @return Pair of modified sets with common elements removed
 */
fun removeCommonElements(set1: MutableSet<Any>, set2: MutableSet<Any>): Pair<MutableSet<Any>, MutableSet<Any>> {

    val commonElements = set1.intersect(set2)
    set1.removeAll(commonElements)
    set2.removeAll(commonElements)
    return Pair(set1, set2)
}
/**
 * Given two sets, remove all common elements from both sets.
 *
 * @param set1 First set of elements
 * @param set2 Second set of elements
 * @return Pair of modified sets with common elements removed
 */
fun removeCommonElements(set1: MutableSet<Any>, set2: MutableSet<Any>): Pair<MutableSet<Any>, MutableSet<Any>> {
/**
 * Given two sets, remove all common elements from both sets.
 *
 * @param set1 First set of elements
 * @param set2 Second set of elements
 * @return Pair of modified sets with common elements removed
 */
fun removeCommonElements(set1: MutableSet<Any>, set2: MutableSet<Any>): Pair<MutableSet<Any>, MutableSet<Any>> {

    val commonElements = set1.intersect(set2)
    set1.removeAll(commonElements)
    set2.removeAll(commonElements)
    return Pair(set1, set2)
}