/**
 * This function takes a list of ingredients and checks if a Chef can cook a specific dish with those ingredients.
 * The Chef can only cook the dish if all ingredients are available and if the main ingredient is present.
 */
fun cookDish(ingredients: List<String>): String {

    // Check if all ingredients are available
    if (listOf("salt", "pepper", "sugar").all { it in ingredients }) {
        // Check if the main ingredient is present
        return when {
            "chicken" in ingredients -> "You can cook Chicken Curry!"
            "beef" in ingredients -> "You can cook Beef Stew!"
            "fish" in ingredients -> "You can cook Fish Curry!"
            else -> "You don't have the main ingredient to cook any dish!"
        }
    } else {
        return "You are missing some ingredients to cook any dish!"
    }
}
/**
 * This function takes a list of ingredients and checks if a Chef can cook a specific dish with those ingredients.
 * The Chef can only cook the dish if all ingredients are available and if the main ingredient is present.
 */
fun cookDish(ingredients: List<String>): String {
/**
 * This function takes a list of ingredients and checks if a Chef can cook a specific dish with those ingredients.
 * The Chef can only cook the dish if all ingredients are available and if the main ingredient is present.
 */
fun cookDish(ingredients: List<String>): String {

    // Check if all ingredients are available
    if (listOf("salt", "pepper", "sugar").all { it in ingredients }) {
        // Check if the main ingredient is present
        return when {
            "chicken" in ingredients -> "You can cook Chicken Curry!"
            "beef" in ingredients -> "You can cook Beef Stew!"
            "fish" in ingredients -> "You can cook Fish Curry!"
            else -> "You don't have the main ingredient to cook any dish!"
        }
    } else {
        return "You are missing some ingredients to cook any dish!"
    }
}