/**
 * Given a palette of colors, return the trendy colors for a fashion designer.
 * Trendy colors are those that belong to the warm or cool color groups and have
 * more than 3 shades available.
 */
fun findTrendyColors(palette: Map<String, List<String>>): List<String> {

    val trendyColors = mutableListOf<String>()

    for ((colorGroup, shades) in palette) {
        if (colorGroup == "warm" || colorGroup == "cool") {
            for (shade in shades) {
                // Check the number of shades available
                if (shade.length > 3) {
                    trendyColors.add(shade)
                }
            }
        }
    }

    return trendyColors
}

// Example usage:
/**
 * Given a palette of colors, return the trendy colors for a fashion designer.
 * Trendy colors are those that belong to the warm or cool color groups and have
 * more than 3 shades available.
 */
fun findTrendyColors(palette: Map<String, List<String>>): List<String> {
/**
 * Given a palette of colors, return the trendy colors for a fashion designer.
 * Trendy colors are those that belong to the warm or cool color groups and have
 * more than 3 shades available.
 */
fun findTrendyColors(palette: Map<String, List<String>>): List<String> {

    val trendyColors = mutableListOf<String>()

    for ((colorGroup, shades) in palette) {
        if (colorGroup == "warm" || colorGroup == "cool") {
            for (shade in shades) {
                // Check the number of shades available
                if (shade.length > 3) {
                    trendyColors.add(shade)
                }
            }
        }
    }

    return trendyColors
}

// Example usage: