/**
 * Given a list of tuples representing the experience of a fashion designer in different fashion houses,
 * return the names of the fashion houses where the designer has worked for at least 5 years.
 *
 * Example:
 * - fashionDesignerExperience(listOf(Pair("Gucci", 3), Pair("Prada", 7), Pair("Chanel", 2), Pair("Versace", 6))) -> listOf("Prada", "Versace")
 *
 * @param list_of_tuples A list of tuples where each tuple represents the name of the fashion house (String)
 *                       and the years of experience (Int) the fashion designer has in that house.
 * @return A list of fashion house names where the fashion designer has worked for at least 5 years.
 */
fun fashionDesignerExperience(listOfTuples: List<Pair<String, Int>>): List<String> {

    // Filter the list of tuples based on the experience criteria
    val filteredList = listOfTuples.filter { it.second >= 5 }

    // Extract only the names of the fashion houses from the filtered list
    val fashionHouses = filteredList.map { it.first }

    return fashionHouses
}
/**
 * Given a list of tuples representing the experience of a fashion designer in different fashion houses,
 * return the names of the fashion houses where the designer has worked for at least 5 years.
 *
 * Example:
 * - fashionDesignerExperience(listOf(Pair("Gucci", 3), Pair("Prada", 7), Pair("Chanel", 2), Pair("Versace", 6))) -> listOf("Prada", "Versace")
 *
 * @param list_of_tuples A list of tuples where each tuple represents the name of the fashion house (String)
 *                       and the years of experience (Int) the fashion designer has in that house.
 * @return A list of fashion house names where the fashion designer has worked for at least 5 years.
 */
fun fashionDesignerExperience(listOfTuples: List<Pair<String, Int>>): List<String> {
/**
 * Given a list of tuples representing the experience of a fashion designer in different fashion houses,
 * return the names of the fashion houses where the designer has worked for at least 5 years.
 *
 * Example:
 * - fashionDesignerExperience(listOf(Pair("Gucci", 3), Pair("Prada", 7), Pair("Chanel", 2), Pair("Versace", 6))) -> listOf("Prada", "Versace")
 *
 * @param list_of_tuples A list of tuples where each tuple represents the name of the fashion house (String)
 *                       and the years of experience (Int) the fashion designer has in that house.
 * @return A list of fashion house names where the fashion designer has worked for at least 5 years.
 */
fun fashionDesignerExperience(listOfTuples: List<Pair<String, Int>>): List<String> {

    // Filter the list of tuples based on the experience criteria
    val filteredList = listOfTuples.filter { it.second >= 5 }

    // Extract only the names of the fashion houses from the filtered list
    val fashionHouses = filteredList.map { it.first }

    return fashionHouses
}