/**
 * Given a dictionary of designers and the corresponding fashion brands they represent,
 * return an array of designers who represent the given brand.
 *
 * @param designers A dictionary of fashion designers and their corresponding brands.
 * @param brand The brand name to search for.
 * @return An array of designers who represent the given brand.
 */
fun getDesignerBrand(designers: Map<String, List<String>>, brand: String): List<String> {

    val matchingDesigners = mutableListOf<String>()

    for ((designer, designerBrands) in designers) {
        if (brand in designerBrands) {
            matchingDesigners.add(designer)
        }
    }

    return matchingDesigners
}
/**
 * Given a dictionary of designers and the corresponding fashion brands they represent,
 * return an array of designers who represent the given brand.
 *
 * @param designers A dictionary of fashion designers and their corresponding brands.
 * @param brand The brand name to search for.
 * @return An array of designers who represent the given brand.
 */
fun getDesignerBrand(designers: Map<String, List<String>>, brand: String): List<String> {
/**
 * Given a dictionary of designers and the corresponding fashion brands they represent,
 * return an array of designers who represent the given brand.
 *
 * @param designers A dictionary of fashion designers and their corresponding brands.
 * @param brand The brand name to search for.
 * @return An array of designers who represent the given brand.
 */
fun getDesignerBrand(designers: Map<String, List<String>>, brand: String): List<String> {

    val matchingDesigners = mutableListOf<String>()

    for ((designer, designerBrands) in designers) {
        if (brand in designerBrands) {
            matchingDesigners.add(designer)
        }
    }

    return matchingDesigners
}