/**
 * You are a Marketing Manager and you have a customer database. You need to find the customers who have made multiple purchases and are also subscribed to your newsletter. Use indexing tuples and continue to complete this task.
 *
 * @param customerData A list of tuples representing customer data. Each tuple contains the customer's name, number of purchases made, and a boolean value indicating if they are subscribed to the newsletter.
 * @return A list of names of customers who have made multiple purchases and are subscribed to the newsletter.
 */
fun findRelevantCustomers(customerData: List<Triple<String, Int, Boolean>>): List<String> {

    val relevantCustomers = mutableListOf<String>()
    
    for (customer in customerData) {
        if (customer.second < 2) {  // Modify this condition to filter customers who made less than multiple purchases
            continue
        }
        
        if (!customer.third) {  // Modify this condition to filter customers who are not subscribed to the newsletter
            continue
        }
        
        relevantCustomers.add(customer.first)
    }
    
    return relevantCustomers
}
/**
 * You are a Marketing Manager and you have a customer database. You need to find the customers who have made multiple purchases and are also subscribed to your newsletter. Use indexing tuples and continue to complete this task.
 *
 * @param customerData A list of tuples representing customer data. Each tuple contains the customer's name, number of purchases made, and a boolean value indicating if they are subscribed to the newsletter.
 * @return A list of names of customers who have made multiple purchases and are subscribed to the newsletter.
 */
fun findRelevantCustomers(customerData: List<Triple<String, Int, Boolean>>): List<String> {
/**
 * You are a Marketing Manager and you have a customer database. You need to find the customers who have made multiple purchases and are also subscribed to your newsletter. Use indexing tuples and continue to complete this task.
 *
 * @param customerData A list of tuples representing customer data. Each tuple contains the customer's name, number of purchases made, and a boolean value indicating if they are subscribed to the newsletter.
 * @return A list of names of customers who have made multiple purchases and are subscribed to the newsletter.
 */
fun findRelevantCustomers(customerData: List<Triple<String, Int, Boolean>>): List<String> {

    val relevantCustomers = mutableListOf<String>()
    
    for (customer in customerData) {
        if (customer.second < 2) {  // Modify this condition to filter customers who made less than multiple purchases
            continue
        }
        
        if (!customer.third) {  // Modify this condition to filter customers who are not subscribed to the newsletter
            continue
        }
        
        relevantCustomers.add(customer.first)
    }
    
    return relevantCustomers
}