/**
 * Write a function to remove common items from two sets using a loop control construct
 */
fun removeCommonItems(set1: MutableSet<Any>, set2: MutableSet<Any>): Pair<MutableSet<Any>, MutableSet<Any>> {

    // Initialize an empty set to store the common items
    val commonItems = mutableSetOf<Any>()

    // Iterate over each item in set1
    for (item in set1.toSet()) {
        // Check if the item is also in set2
        if (item in set2) {
            // Add the item to the commonItems set
            commonItems.add(item)
        }
    }

    // Iterate over each item in the commonItems set
    for (item in commonItems) {
        // Remove the item from both set1 and set2
        set1.remove(item)
        set2.remove(item)
    }

    // Return the modified sets without the common items
    return Pair(set1, set2)
}
/**
 * Write a function to remove common items from two sets using a loop control construct
 */
fun removeCommonItems(set1: MutableSet<Any>, set2: MutableSet<Any>): Pair<MutableSet<Any>, MutableSet<Any>> {
/**
 * Write a function to remove common items from two sets using a loop control construct
 */
fun removeCommonItems(set1: MutableSet<Any>, set2: MutableSet<Any>): Pair<MutableSet<Any>, MutableSet<Any>> {

    // Initialize an empty set to store the common items
    val commonItems = mutableSetOf<Any>()

    // Iterate over each item in set1
    for (item in set1.toSet()) {
        // Check if the item is also in set2
        if (item in set2) {
            // Add the item to the commonItems set
            commonItems.add(item)
        }
    }

    // Iterate over each item in the commonItems set
    for (item in commonItems) {
        // Remove the item from both set1 and set2
        set1.remove(item)
        set2.remove(item)
    }

    // Return the modified sets without the common items
    return Pair(set1, set2)
}