/**
 * Given a palette name and number of colors, create a set of colors for the fashion designer.
 *
 * @param paletteName The name of the color palette.
 * @param numColors The number of colors in the palette.
 * @return A set of colors in the palette.
 */
fun createColorPalette(paletteName: String, numColors: Int): Set<String> {

    val colors = mutableSetOf<String>()

    // Check if the palette name is valid
    if (paletteName !in setOf("Spring", "Summer", "Autumn", "Winter")) {
        return setOf("Invalid palette name! Please choose from Spring, Summer, Autumn, or Winter.")
    }

    // Check if the number of colors is within the valid range
    if (numColors < 1 || numColors > 10) {
        return setOf("Invalid number of colors! Please choose a number between 1 and 10.")
    }

    // Generate the colors based on the palette name
    if (paletteName == "Spring") {
        colors.addAll(listOf("pastel pink", "mint green", "baby blue", "light yellow"))
        
        if (numColors >= 5) {
            colors.add("lavender")
        }
    }

    return colors.toSet()
}
/**
 * Given a palette name and number of colors, create a set of colors for the fashion designer.
 *
 * @param paletteName The name of the color palette.
 * @param numColors The number of colors in the palette.
 * @return A set of colors in the palette.
 */
fun createColorPalette(paletteName: String, numColors: Int): Set<String> {
/**
 * Given a palette name and number of colors, create a set of colors for the fashion designer.
 *
 * @param paletteName The name of the color palette.
 * @param numColors The number of colors in the palette.
 * @return A set of colors in the palette.
 */
fun createColorPalette(paletteName: String, numColors: Int): Set<String> {

    val colors = mutableSetOf<String>()

    // Check if the palette name is valid
    if (paletteName !in setOf("Spring", "Summer", "Autumn", "Winter")) {
        return setOf("Invalid palette name! Please choose from Spring, Summer, Autumn, or Winter.")
    }

    // Check if the number of colors is within the valid range
    if (numColors < 1 || numColors > 10) {
        return setOf("Invalid number of colors! Please choose a number between 1 and 10.")
    }

    // Generate the colors based on the palette name
    if (paletteName == "Spring") {
        colors.addAll(listOf("pastel pink", "mint green", "baby blue", "light yellow"))
        
        if (numColors >= 5) {
            colors.add("lavender")
        }
    }

    return colors.toSet()
}