/**
 * This exercise requires you to append elements to a list and iterate over a sequence.
 *
 * You are a Marketing Manager and you need to update your customer list with the new customers.
 * Your task is to write a function that takes two arguments:
 * - customers: a list containing the existing customers
 * - newCustomers: a list containing the new customers
 *
 * Your function should append each new customer to the existing customers list.
 * Additionally, you need to iterate over the updated customer list and capitalize the first letter of each customer's name.
 * Finally, your function should return the updated customer list with the capitalized names.
 */
fun marketingManagerTask(customers: MutableList<String>, newCustomers: List<String>): List<String> {

    // Appending new customers to the existing list
    customers.addAll(newCustomers)

    // Iterate over the customer list and capitalize the first letter of each name
    val updatedCustomers = customers.map { it.capitalize() }

    return updatedCustomers
}
/**
 * This exercise requires you to append elements to a list and iterate over a sequence.
 *
 * You are a Marketing Manager and you need to update your customer list with the new customers.
 * Your task is to write a function that takes two arguments:
 * - customers: a list containing the existing customers
 * - newCustomers: a list containing the new customers
 *
 * Your function should append each new customer to the existing customers list.
 * Additionally, you need to iterate over the updated customer list and capitalize the first letter of each customer's name.
 * Finally, your function should return the updated customer list with the capitalized names.
 */
fun marketingManagerTask(customers: MutableList<String>, newCustomers: List<String>): List<String> {
/**
 * This exercise requires you to append elements to a list and iterate over a sequence.
 *
 * You are a Marketing Manager and you need to update your customer list with the new customers.
 * Your task is to write a function that takes two arguments:
 * - customers: a list containing the existing customers
 * - newCustomers: a list containing the new customers
 *
 * Your function should append each new customer to the existing customers list.
 * Additionally, you need to iterate over the updated customer list and capitalize the first letter of each customer's name.
 * Finally, your function should return the updated customer list with the capitalized names.
 */
fun marketingManagerTask(customers: MutableList<String>, newCustomers: List<String>): List<String> {

    // Appending new customers to the existing list
    customers.addAll(newCustomers)

    // Iterate over the customer list and capitalize the first letter of each name
    val updatedCustomers = customers.map { it.capitalize() }

    return updatedCustomers
}