/**
 * You are a chef who needs to accommodate the dietary preferences of your customers.
 * Your code should determine whether you can prepare a specific dish for a given customer
 * based on their order and dietary restrictions (vegan and gluten-free).
 *
 * @param order A string representing the dish ordered by the customer.
 * @param isVegan A boolean value indicating if the customer is vegan (true) or not (false).
 * @param isGlutenFree A boolean value indicating if the customer is gluten-free (true) or not (false).
 * @return A string indicating whether the dish can be prepared according to the customer's dietary preferences.
 * Return "Dish can be prepared" if the dish can be made for the customer, otherwise "Sorry, unable to prepare the dish".
 */
fun chefCode(order: String, isVegan: Boolean, isGlutenFree: Boolean): String {

    if (isVegan) {
        if (isGlutenFree) {
            if (order == "Vegan & Gluten-free Dish") {
                return "Dish can be prepared"
            } else {
                return "Sorry, unable to prepare the dish"
            }
        } else {
            if (order == "Vegan Dish") {
                return "Dish can be prepared"
            }
        }
    }
    return "Sorry, unable to prepare the dish"
}
/**
 * You are a chef who needs to accommodate the dietary preferences of your customers.
 * Your code should determine whether you can prepare a specific dish for a given customer
 * based on their order and dietary restrictions (vegan and gluten-free).
 *
 * @param order A string representing the dish ordered by the customer.
 * @param isVegan A boolean value indicating if the customer is vegan (true) or not (false).
 * @param isGlutenFree A boolean value indicating if the customer is gluten-free (true) or not (false).
 * @return A string indicating whether the dish can be prepared according to the customer's dietary preferences.
 * Return "Dish can be prepared" if the dish can be made for the customer, otherwise "Sorry, unable to prepare the dish".
 */
fun chefCode(order: String, isVegan: Boolean, isGlutenFree: Boolean): String {
/**
 * You are a chef who needs to accommodate the dietary preferences of your customers.
 * Your code should determine whether you can prepare a specific dish for a given customer
 * based on their order and dietary restrictions (vegan and gluten-free).
 *
 * @param order A string representing the dish ordered by the customer.
 * @param isVegan A boolean value indicating if the customer is vegan (true) or not (false).
 * @param isGlutenFree A boolean value indicating if the customer is gluten-free (true) or not (false).
 * @return A string indicating whether the dish can be prepared according to the customer's dietary preferences.
 * Return "Dish can be prepared" if the dish can be made for the customer, otherwise "Sorry, unable to prepare the dish".
 */
fun chefCode(order: String, isVegan: Boolean, isGlutenFree: Boolean): String {

    if (isVegan) {
        if (isGlutenFree) {
            if (order == "Vegan & Gluten-free Dish") {
                return "Dish can be prepared"
            } else {
                return "Sorry, unable to prepare the dish"
            }
        } else {
            if (order == "Vegan Dish") {
                return "Dish can be prepared"
            }
        }
    }
    return "Sorry, unable to prepare the dish"
}