/**
 * Given a string containing fashion designer data in the format 'name,brand,city',
 * extract the name, brand, and city and return a triple in the format (name, brand, city).
 *
 * Example:
 * extractData("John Smith,Versace,Milan") returns Triple("John Smith", "Versace", "Milan")
 * extractData("Anna Johnson,Gucci,Paris") returns Triple("Anna Johnson", "Gucci", "Paris")
 */
fun extractData(fashionData: String): Triple<String, String, String> {

    // Split the fashionData string into a list of elements separated by commas
    val dataList = fashionData.split(",")
    
    // Extract the name, brand, and city from the dataList
    val name = dataList[0].trim()
    val brand = dataList[1].trim()
    val city = dataList[2].trim()
    
    // Return a triple containing the name, brand, and city
    return Triple(name, brand, city)
}
/**
 * Given a string containing fashion designer data in the format 'name,brand,city',
 * extract the name, brand, and city and return a triple in the format (name, brand, city).
 *
 * Example:
 * extractData("John Smith,Versace,Milan") returns Triple("John Smith", "Versace", "Milan")
 * extractData("Anna Johnson,Gucci,Paris") returns Triple("Anna Johnson", "Gucci", "Paris")
 */
fun extractData(fashionData: String): Triple<String, String, String> {
/**
 * Given a string containing fashion designer data in the format 'name,brand,city',
 * extract the name, brand, and city and return a triple in the format (name, brand, city).
 *
 * Example:
 * extractData("John Smith,Versace,Milan") returns Triple("John Smith", "Versace", "Milan")
 * extractData("Anna Johnson,Gucci,Paris") returns Triple("Anna Johnson", "Gucci", "Paris")
 */
fun extractData(fashionData: String): Triple<String, String, String> {

    // Split the fashionData string into a list of elements separated by commas
    val dataList = fashionData.split(",")
    
    // Extract the name, brand, and city from the dataList
    val name = dataList[0].trim()
    val brand = dataList[1].trim()
    val city = dataList[2].trim()
    
    // Return a triple containing the name, brand, and city
    return Triple(name, brand, city)
}