/**
 * As a fashion designer, you have a collection of outfits and a set of fashion styles. Your task is to filter the outfits
 * using set comprehension and return the outfits that match at least one style.
 *
 * @param outfits A list of outfits, each represented by a dictionary containing 'name' and 'styles' keys.
 * @param styles A set of fashion styles.
 * @return A list of outfits that match at least one style.
 */
fun designCollection(outfits: List<Map<String, List<String>>>, styles: Set<String>): List<Map<String, List<String>>> {

    return outfits.filter { outfit ->
        outfit["styles"]?.any { style -> style in styles } ?: false
    }
}
/**
 * As a fashion designer, you have a collection of outfits and a set of fashion styles. Your task is to filter the outfits
 * using set comprehension and return the outfits that match at least one style.
 *
 * @param outfits A list of outfits, each represented by a dictionary containing 'name' and 'styles' keys.
 * @param styles A set of fashion styles.
 * @return A list of outfits that match at least one style.
 */
fun designCollection(outfits: List<Map<String, List<String>>>, styles: Set<String>): List<Map<String, List<String>>> {
/**
 * As a fashion designer, you have a collection of outfits and a set of fashion styles. Your task is to filter the outfits
 * using set comprehension and return the outfits that match at least one style.
 *
 * @param outfits A list of outfits, each represented by a dictionary containing 'name' and 'styles' keys.
 * @param styles A set of fashion styles.
 * @return A list of outfits that match at least one style.
 */
fun designCollection(outfits: List<Map<String, List<String>>>, styles: Set<String>): List<Map<String, List<String>>> {

    return outfits.filter { outfit ->
        outfit["styles"]?.any { style -> style in styles } ?: false
    }
}