/**
 * Chef Special: Code Completion Exercise
 *
 * The chefSpecial function takes a menu list and a customerChoice as arguments.
 * It should modify the menu list based on the customer choice using nested ternary operators.
 *
 * In this exercise, you need to complete the code to change the individual elements of the menu list.
 *
 * @param menu A list of menu items.
 * @param customerChoice The customer's choice.
 * @return The modified menu list after changing individual elements.
 *
 * Example:
 * menu = ['Soup', 'Salad', 'Burger', 'Pizza']
 * customerChoice = 'Burger'
 *
 * chefSpecial(menu, customerChoice)
 * >> ['Soup', 'Salad', 'Chef Special', 'Pizza']
 */
fun chefSpecial(menu: MutableList<String>, customerChoice: String): List<String> {

    return menu.map { if (it != customerChoice) it else "Chef Special" }
}
/**
 * Chef Special: Code Completion Exercise
 *
 * The chefSpecial function takes a menu list and a customerChoice as arguments.
 * It should modify the menu list based on the customer choice using nested ternary operators.
 *
 * In this exercise, you need to complete the code to change the individual elements of the menu list.
 *
 * @param menu A list of menu items.
 * @param customerChoice The customer's choice.
 * @return The modified menu list after changing individual elements.
 *
 * Example:
 * menu = ['Soup', 'Salad', 'Burger', 'Pizza']
 * customerChoice = 'Burger'
 *
 * chefSpecial(menu, customerChoice)
 * >> ['Soup', 'Salad', 'Chef Special', 'Pizza']
 */
fun chefSpecial(menu: MutableList<String>, customerChoice: String): List<String> {
/**
 * Chef Special: Code Completion Exercise
 *
 * The chefSpecial function takes a menu list and a customerChoice as arguments.
 * It should modify the menu list based on the customer choice using nested ternary operators.
 *
 * In this exercise, you need to complete the code to change the individual elements of the menu list.
 *
 * @param menu A list of menu items.
 * @param customerChoice The customer's choice.
 * @return The modified menu list after changing individual elements.
 *
 * Example:
 * menu = ['Soup', 'Salad', 'Burger', 'Pizza']
 * customerChoice = 'Burger'
 *
 * chefSpecial(menu, customerChoice)
 * >> ['Soup', 'Salad', 'Chef Special', 'Pizza']
 */
fun chefSpecial(menu: MutableList<String>, customerChoice: String): List<String> {

    return menu.map { if (it != customerChoice) it else "Chef Special" }
}