/**
 * This function calculates the intersection of two sets using the division assignment operator.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The intersection of set1 and set2.
 */
fun intersectionOfSets(set1: MutableSet<Any>, set2: Set<Any>): MutableSet<Any> {

    // Removing elements from set1 that are not present in set2
    set1.retainAll(set2)
    
    return set1
}
/**
 * This function calculates the intersection of two sets using the division assignment operator.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The intersection of set1 and set2.
 */
fun intersectionOfSets(set1: MutableSet<Any>, set2: Set<Any>): MutableSet<Any> {
/**
 * This function calculates the intersection of two sets using the division assignment operator.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The intersection of set1 and set2.
 */
fun intersectionOfSets(set1: MutableSet<Any>, set2: Set<Any>): MutableSet<Any> {

    // Removing elements from set1 that are not present in set2
    set1.retainAll(set2)
    
    return set1
}