/**
 * Given two sets, remove the common elements from set1 and return the updated set.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The updated set1 with common elements removed.
 */
fun removeCommonElements(set1: MutableSet<Any>, set2: Set<Any>): MutableSet<Any> {

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

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

    return set1
}
/**
 * Given two sets, remove the common elements from set1 and return the updated set.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The updated set1 with common elements removed.
 */
fun removeCommonElements(set1: MutableSet<Any>, set2: Set<Any>): MutableSet<Any> {
/**
 * Given two sets, remove the common elements from set1 and return the updated set.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The updated set1 with common elements removed.
 */
fun removeCommonElements(set1: MutableSet<Any>, set2: Set<Any>): MutableSet<Any> {

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

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

    return set1
}