/**
 * Given a dictionary of fashion designer styles and the name of a designer,
 * update the styles for the given designer. If the designer is not in the dictionary,
 * add the designer with an empty list of styles.
 *
 * @param designerStyles A dictionary containing fashion designer styles.
 * @param designerName The name of the fashion designer.
 * @return The updated dictionary of fashion designer styles.
 */
fun updateDesignerStyles(designerStyles: MutableMap<String, MutableList<String>>, designerName: String): MutableMap<String, MutableList<String>> {

    if (!designerStyles.containsKey(designerName)) {
        designerStyles[designerName] = mutableListOf()
    }

    while (true) {
        print("Enter a style or type 'continue' to finish updating styles: ")
        val styleChoice = readLine() ?: ""

        if (styleChoice == "continue") {
            break
        } else {
            designerStyles[designerName]?.add(styleChoice)
        }
    }

    return designerStyles
}
/**
 * Given a dictionary of fashion designer styles and the name of a designer,
 * update the styles for the given designer. If the designer is not in the dictionary,
 * add the designer with an empty list of styles.
 *
 * @param designerStyles A dictionary containing fashion designer styles.
 * @param designerName The name of the fashion designer.
 * @return The updated dictionary of fashion designer styles.
 */
fun updateDesignerStyles(designerStyles: MutableMap<String, MutableList<String>>, designerName: String): MutableMap<String, MutableList<String>> {
/**
 * Given a dictionary of fashion designer styles and the name of a designer,
 * update the styles for the given designer. If the designer is not in the dictionary,
 * add the designer with an empty list of styles.
 *
 * @param designerStyles A dictionary containing fashion designer styles.
 * @param designerName The name of the fashion designer.
 * @return The updated dictionary of fashion designer styles.
 */
fun updateDesignerStyles(designerStyles: MutableMap<String, MutableList<String>>, designerName: String): MutableMap<String, MutableList<String>> {

    if (!designerStyles.containsKey(designerName)) {
        designerStyles[designerName] = mutableListOf()
    }

    while (true) {
        print("Enter a style or type 'continue' to finish updating styles: ")
        val styleChoice = readLine() ?: ""

        if (styleChoice == "continue") {
            break
        } else {
            designerStyles[designerName]?.add(styleChoice)
        }
    }

    return designerStyles
}