/**
 * This function takes in a dictionary of wall colors and returns a list of colors that the interior designer has chosen for a project.
 */
fun findWallColors(wallChoices: Map<String, List<String>>): List<String> {

    // Initialize an empty list to store the chosen wall colors
    val chosenColors = mutableListOf<String>()

    // Loop through each wall color in the dictionary
    for ((wallColor, colorOptions) in wallChoices) {
        // Prompt the interior designer to select a color for the current wall
        print("What color would you like for $wallColor? ")
        val userInput = readLine()

        // Check if the user input is a valid color option from the dictionary
        if (userInput in colorOptions) {
            chosenColors.add(userInput!!)  // Add the chosen color to the list
            println("Color successfully added!")
        } else {
            println("Sorry, that's not a valid color option. Please try again.")
        }
    }

    return chosenColors
}

// Dictionary of available wall colors
val wallColors = mapOf(
    "Living Room" to listOf("Beige", "White", "Light Gray"),
    "Bedroom" to listOf("Blue", "Purple", "Gray"),
    "Kitchen" to listOf("Yellow", "Green", "Red"),
    "Bathroom" to listOf("White", "Light Blue", "Cream")
)
/**
 * This function takes in a dictionary of wall colors and returns a list of colors that the interior designer has chosen for a project.
 */
fun findWallColors(wallChoices: Map<String, List<String>>): List<String> {
/**
 * This function takes in a dictionary of wall colors and returns a list of colors that the interior designer has chosen for a project.
 */
fun findWallColors(wallChoices: Map<String, List<String>>): List<String> {

    // Initialize an empty list to store the chosen wall colors
    val chosenColors = mutableListOf<String>()

    // Loop through each wall color in the dictionary
    for ((wallColor, colorOptions) in wallChoices) {
        // Prompt the interior designer to select a color for the current wall
        print("What color would you like for $wallColor? ")
        val userInput = readLine()

        // Check if the user input is a valid color option from the dictionary
        if (userInput in colorOptions) {
            chosenColors.add(userInput!!)  // Add the chosen color to the list
            println("Color successfully added!")
        } else {
            println("Sorry, that's not a valid color option. Please try again.")
        }
    }

    return chosenColors
}

// Dictionary of available wall colors
val wallColors = mapOf(
    "Living Room" to listOf("Beige", "White", "Light Gray"),
    "Bedroom" to listOf("Blue", "Purple", "Gray"),
    "Kitchen" to listOf("Yellow", "Green", "Red"),
    "Bathroom" to listOf("White", "Light Blue", "Cream")
)