/**
 * This function takes in two sets, set1 and set2, and removes any elements from set1 that are also present in set2.
 * Returns the modified set1 with the duplicates removed.
 *
 * @param set1 The first set of elements
 * @param set2 The second set of elements
 * @return Modified set1 with duplicates removed
 */
fun removeDuplicates(set1: MutableSet<Any>, set2: Set<Any>): MutableSet<Any> {

    val set1Copy = set1.toMutableSet()
    for (element in set1Copy) {
        if (element in set2) {
            set1.remove(element)
        }
    }
    return set1
}
/**
 * This function takes in two sets, set1 and set2, and removes any elements from set1 that are also present in set2.
 * Returns the modified set1 with the duplicates removed.
 *
 * @param set1 The first set of elements
 * @param set2 The second set of elements
 * @return Modified set1 with duplicates removed
 */
fun removeDuplicates(set1: MutableSet<Any>, set2: Set<Any>): MutableSet<Any> {
/**
 * This function takes in two sets, set1 and set2, and removes any elements from set1 that are also present in set2.
 * Returns the modified set1 with the duplicates removed.
 *
 * @param set1 The first set of elements
 * @param set2 The second set of elements
 * @return Modified set1 with duplicates removed
 */
fun removeDuplicates(set1: MutableSet<Any>, set2: Set<Any>): MutableSet<Any> {

    val set1Copy = set1.toMutableSet()
    for (element in set1Copy) {
        if (element in set2) {
            set1.remove(element)
        }
    }
    return set1
}