/**
 * As a Marketing Manager, you are assigned the task of updating the customer list based on certain conditions.
 * Write a function that takes in a customer list and a customer as parameters and performs the following steps:
 *
 * 1. Check if the customer is already in the customer_list.
 * 2. If the customer is already in the list, remove the customer from the customer_list.
 * 3. If the customer is not in the list, append the customer to the customer_list.
 * 4. Return the updated customer_list.
 *
 * Note: The customer is represented by a Pair(name, email).
 *
 * @param customerList A list of customers.
 * @param customer The customer to be added or removed.
 * @return The updated customer list.
 */
fun updateCustomerList(customerList: MutableList<Pair<String, String>>, customer: Pair<String, String>): MutableList<Pair<String, String>> {

    if (customerList.contains(customer)) {
        customerList.remove(customer)
    } else {
        customerList.add(customer)
    }
    return customerList
}
/**
 * As a Marketing Manager, you are assigned the task of updating the customer list based on certain conditions.
 * Write a function that takes in a customer list and a customer as parameters and performs the following steps:
 *
 * 1. Check if the customer is already in the customer_list.
 * 2. If the customer is already in the list, remove the customer from the customer_list.
 * 3. If the customer is not in the list, append the customer to the customer_list.
 * 4. Return the updated customer_list.
 *
 * Note: The customer is represented by a Pair(name, email).
 *
 * @param customerList A list of customers.
 * @param customer The customer to be added or removed.
 * @return The updated customer list.
 */
fun updateCustomerList(customerList: MutableList<Pair<String, String>>, customer: Pair<String, String>): MutableList<Pair<String, String>> {
/**
 * As a Marketing Manager, you are assigned the task of updating the customer list based on certain conditions.
 * Write a function that takes in a customer list and a customer as parameters and performs the following steps:
 *
 * 1. Check if the customer is already in the customer_list.
 * 2. If the customer is already in the list, remove the customer from the customer_list.
 * 3. If the customer is not in the list, append the customer to the customer_list.
 * 4. Return the updated customer_list.
 *
 * Note: The customer is represented by a Pair(name, email).
 *
 * @param customerList A list of customers.
 * @param customer The customer to be added or removed.
 * @return The updated customer list.
 */
fun updateCustomerList(customerList: MutableList<Pair<String, String>>, customer: Pair<String, String>): MutableList<Pair<String, String>> {

    if (customerList.contains(customer)) {
        customerList.remove(customer)
    } else {
        customerList.add(customer)
    }
    return customerList
}