/**
 * Chef is planning to cook a dish.
 * He has a list of ingredients required for the recipe and the name of the dish.
 * Your task is to check whether all the ingredients are present in the dish or not.
 *
 * @param ingredients A list of strings representing the ingredients required for the dish.
 * @param dish A string representing the name of the dish.
 * @return True if all the ingredients are present in the dish, False if any ingredient is missing from the dish.
 *
 * Example:
 * checkIngredients(listOf("sugar", "flour", "butter"), "apple pie")
 * Output: true
 *
 * checkIngredients(listOf("salt", "pepper", "garlic"), "hamburger")
 * Output: false
 */
fun checkIngredients(ingredients: List<String>, dish: String): Boolean {

    // Check if any ingredient is missing from the dish
    for (ingredient in ingredients) {
        if (!dish.contains(ingredient)) {
            return false
        }
    }
    return true
}
/**
 * Chef is planning to cook a dish.
 * He has a list of ingredients required for the recipe and the name of the dish.
 * Your task is to check whether all the ingredients are present in the dish or not.
 *
 * @param ingredients A list of strings representing the ingredients required for the dish.
 * @param dish A string representing the name of the dish.
 * @return True if all the ingredients are present in the dish, False if any ingredient is missing from the dish.
 *
 * Example:
 * checkIngredients(listOf("sugar", "flour", "butter"), "apple pie")
 * Output: true
 *
 * checkIngredients(listOf("salt", "pepper", "garlic"), "hamburger")
 * Output: false
 */
fun checkIngredients(ingredients: List<String>, dish: String): Boolean {
/**
 * Chef is planning to cook a dish.
 * He has a list of ingredients required for the recipe and the name of the dish.
 * Your task is to check whether all the ingredients are present in the dish or not.
 *
 * @param ingredients A list of strings representing the ingredients required for the dish.
 * @param dish A string representing the name of the dish.
 * @return True if all the ingredients are present in the dish, False if any ingredient is missing from the dish.
 *
 * Example:
 * checkIngredients(listOf("sugar", "flour", "butter"), "apple pie")
 * Output: true
 *
 * checkIngredients(listOf("salt", "pepper", "garlic"), "hamburger")
 * Output: false
 */
fun checkIngredients(ingredients: List<String>, dish: String): Boolean {

    // Check if any ingredient is missing from the dish
    for (ingredient in ingredients) {
        if (!dish.contains(ingredient)) {
            return false
        }
    }
    return true
}