/**
 * Given two sets, remove common elements from both sets and return the modified sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A Pair containing the modified sets without the common elements.
 */
fun removeCommonElements(set1: MutableSet<Any>, set2: MutableSet<Any>): Pair<MutableSet<Any>, MutableSet<Any>> {

    val set1Copy = HashSet(set1)
    val set2Copy = HashSet(set2)

    for (element in set1Copy) {
        if (element in set2Copy) {
            set1.remove(element)
            set2.remove(element)
        }
    }

    return Pair(set1, set2)
}
/**
 * Given two sets, remove common elements from both sets and return the modified sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A Pair containing the modified sets without the common elements.
 */
fun removeCommonElements(set1: MutableSet<Any>, set2: MutableSet<Any>): Pair<MutableSet<Any>, MutableSet<Any>> {
/**
 * Given two sets, remove common elements from both sets and return the modified sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A Pair containing the modified sets without the common elements.
 */
fun removeCommonElements(set1: MutableSet<Any>, set2: MutableSet<Any>): Pair<MutableSet<Any>, MutableSet<Any>> {

    val set1Copy = HashSet(set1)
    val set2Copy = HashSet(set2)

    for (element in set1Copy) {
        if (element in set2Copy) {
            set1.remove(element)
            set2.remove(element)
        }
    }

    return Pair(set1, set2)
}