/**
 * Given a set of items selected for removal and a nested dictionary representing the interior design,
 * remove the selected items from the design.
 *
 * @param interiorDesign A nested dictionary representing the interior design.
 * @return The modified interior design with selected items removed.
 */
fun removeSelectedItems(interiorDesign: MutableMap<String, MutableSet<String>>): MutableMap<String, MutableSet<String>> {

    // A set of items selected for removal
    val itemsToRemove = setOf("Chair", "Lamp", "Table")

    // Iterate over each room in the interior design
    for ((room, items) in interiorDesign) {
        // Create a copy of the items in the current room
        val itemsCopy = items.toMutableSet()

        // Iterate over each item in the current room
        for (item in itemsCopy) {
            // Check if the item is in the set of items to remove
            if (item in itemsToRemove) {
                // Remove the item from the current room
                items.remove(item)
            }
        }
    }

    return interiorDesign
}
/**
 * Given a set of items selected for removal and a nested dictionary representing the interior design,
 * remove the selected items from the design.
 *
 * @param interiorDesign A nested dictionary representing the interior design.
 * @return The modified interior design with selected items removed.
 */
fun removeSelectedItems(interiorDesign: MutableMap<String, MutableSet<String>>): MutableMap<String, MutableSet<String>> {
/**
 * Given a set of items selected for removal and a nested dictionary representing the interior design,
 * remove the selected items from the design.
 *
 * @param interiorDesign A nested dictionary representing the interior design.
 * @return The modified interior design with selected items removed.
 */
fun removeSelectedItems(interiorDesign: MutableMap<String, MutableSet<String>>): MutableMap<String, MutableSet<String>> {

    // A set of items selected for removal
    val itemsToRemove = setOf("Chair", "Lamp", "Table")

    // Iterate over each room in the interior design
    for ((room, items) in interiorDesign) {
        // Create a copy of the items in the current room
        val itemsCopy = items.toMutableSet()

        // Iterate over each item in the current room
        for (item in itemsCopy) {
            // Check if the item is in the set of items to remove
            if (item in itemsToRemove) {
                // Remove the item from the current room
                items.remove(item)
            }
        }
    }

    return interiorDesign
}