/**
 * This function takes a list of rooms and returns a set containing all unique materials used in the rooms.
 */
fun calculateUniqueMaterials(rooms: List<Map<String, Set<String>>>): Set<String> {

    // Initialize an empty set
    val uniqueMaterials = mutableSetOf<String>()

    // Iterate through each room
    for (room in rooms) {
        // Update uniqueMaterials set by adding all elements of materialList
        uniqueMaterials.addAll(room["materialList"] ?: emptySet())
    }

    return uniqueMaterials
}
/**
 * This function takes a list of rooms and returns a set containing all unique materials used in the rooms.
 */
fun calculateUniqueMaterials(rooms: List<Map<String, Set<String>>>): Set<String> {
/**
 * This function takes a list of rooms and returns a set containing all unique materials used in the rooms.
 */
fun calculateUniqueMaterials(rooms: List<Map<String, Set<String>>>): Set<String> {

    // Initialize an empty set
    val uniqueMaterials = mutableSetOf<String>()

    // Iterate through each room
    for (room in rooms) {
        // Update uniqueMaterials set by adding all elements of materialList
        uniqueMaterials.addAll(room["materialList"] ?: emptySet())
    }

    return uniqueMaterials
}