/**
 * Given a set of buildings and a dictionary of building areas, calculate the total area of the buildings
 * that have an odd area.
 *
 * @param buildings A set containing the names of the buildings
 * @param areaDict A dictionary mapping the building name to its area in square meters
 * @return The total area of the buildings with odd areas
 */
fun calculateTotalArea(buildings: Set<String>, areaDict: Map<String, Int>): Int {

    var totalArea = 0

    for (building in buildings) {
        if (building in areaDict) {
            val area = areaDict[building] ?: 0
            if (area % 2 != 0) {
                totalArea += area
            }
        }
    }

    return totalArea
}
/**
 * Given a set of buildings and a dictionary of building areas, calculate the total area of the buildings
 * that have an odd area.
 *
 * @param buildings A set containing the names of the buildings
 * @param areaDict A dictionary mapping the building name to its area in square meters
 * @return The total area of the buildings with odd areas
 */
fun calculateTotalArea(buildings: Set<String>, areaDict: Map<String, Int>): Int {
/**
 * Given a set of buildings and a dictionary of building areas, calculate the total area of the buildings
 * that have an odd area.
 *
 * @param buildings A set containing the names of the buildings
 * @param areaDict A dictionary mapping the building name to its area in square meters
 * @return The total area of the buildings with odd areas
 */
fun calculateTotalArea(buildings: Set<String>, areaDict: Map<String, Int>): Int {

    var totalArea = 0

    for (building in buildings) {
        if (building in areaDict) {
            val area = areaDict[building] ?: 0
            if (area % 2 != 0) {
                totalArea += area
            }
        }
    }

    return totalArea
}