/**
 * Given a dictionary of designs and their color information, return a dictionary that contains the count of each color across all designs.
 */
fun getColorCounts(designs: Map<String, List<String>>): Map<String, Int> {

    val colorCounts = mutableMapOf<String, Int>()
    for ((_, colors) in designs) {
        for (color in colors) {
            colorCounts[color] = colorCounts.getOrDefault(color, 0) + 1
        }
    }
    return colorCounts
}
/**
 * Given a dictionary of designs and their color information, return a dictionary that contains the count of each color across all designs.
 */
fun getColorCounts(designs: Map<String, List<String>>): Map<String, Int> {
/**
 * Given a dictionary of designs and their color information, return a dictionary that contains the count of each color across all designs.
 */
fun getColorCounts(designs: Map<String, List<String>>): Map<String, Int> {

    val colorCounts = mutableMapOf<String, Int>()
    for ((_, colors) in designs) {
        for (color in colors) {
            colorCounts[color] = colorCounts.getOrDefault(color, 0) + 1
        }
    }
    return colorCounts
}