/**
 * This function checks if the chef has all the ingredients to make a recipe.
 * The chefIngredients parameter is a list representing the ingredients the chef has.
 * The recipeIngredients parameter is a list representing the ingredients needed for the recipe.
 * The function returns true if the chef has all the ingredients, and false otherwise.
 */
fun checkIngredients(chefIngredients: List<String>, recipeIngredients: List<String>): Boolean {

    for (ingredient in recipeIngredients) {
        // Check if the chef has the current ingredient
        if (ingredient !in chefIngredients) {
            return false
        }
    }
    return true
}
/**
 * This function checks if the chef has all the ingredients to make a recipe.
 * The chefIngredients parameter is a list representing the ingredients the chef has.
 * The recipeIngredients parameter is a list representing the ingredients needed for the recipe.
 * The function returns true if the chef has all the ingredients, and false otherwise.
 */
fun checkIngredients(chefIngredients: List<String>, recipeIngredients: List<String>): Boolean {
/**
 * This function checks if the chef has all the ingredients to make a recipe.
 * The chefIngredients parameter is a list representing the ingredients the chef has.
 * The recipeIngredients parameter is a list representing the ingredients needed for the recipe.
 * The function returns true if the chef has all the ingredients, and false otherwise.
 */
fun checkIngredients(chefIngredients: List<String>, recipeIngredients: List<String>): Boolean {

    for (ingredient in recipeIngredients) {
        // Check if the chef has the current ingredient
        if (ingredient !in chefIngredients) {
            return false
        }
    }
    return true
}