/**
 * Calculate the total cost of interior design for different rooms based on the given prices.
 *
 * @param rooms A list of rooms to be designed.
 * @param prices A list of prices corresponding to each room type.
 * @return The total cost of interior design.
 */
fun calculateTotalCost(rooms: List<String>, prices: List<Float>): Float {

    var totalCost = 0f

    for (room in rooms) {
        var cost = 0f

        cost += when (room) {
            "Living Room" -> prices[0]
            "Bedroom" -> prices[1]
            "Bathroom" -> prices[2]
            else -> prices[3]
        }

        for (item in listOf("Sofa", "Curtains", "Cushions")) {
            if (item !in rooms) {
                cost += 100f
            }
        }

        totalCost += cost
    }

    return totalCost
}
/**
 * Calculate the total cost of interior design for different rooms based on the given prices.
 *
 * @param rooms A list of rooms to be designed.
 * @param prices A list of prices corresponding to each room type.
 * @return The total cost of interior design.
 */
fun calculateTotalCost(rooms: List<String>, prices: List<Float>): Float {
/**
 * Calculate the total cost of interior design for different rooms based on the given prices.
 *
 * @param rooms A list of rooms to be designed.
 * @param prices A list of prices corresponding to each room type.
 * @return The total cost of interior design.
 */
fun calculateTotalCost(rooms: List<String>, prices: List<Float>): Float {

    var totalCost = 0f

    for (room in rooms) {
        var cost = 0f

        cost += when (room) {
            "Living Room" -> prices[0]
            "Bedroom" -> prices[1]
            "Bathroom" -> prices[2]
            else -> prices[3]
        }

        for (item in listOf("Sofa", "Curtains", "Cushions")) {
            if (item !in rooms) {
                cost += 100f
            }
        }

        totalCost += cost
    }

    return totalCost
}