/**
 * A Chef is preparing a dish and needs to determine if a certain combination of ingredients is available.
 * The Chef will loop through the list of ingredients and use logical operators to check if the ingredients are present or not.
 *
 * @param num_of_ingredients The total number of ingredients in the list.
 * @param ingredients_list A list of all the ingredients available.
 * @param ingredient1 The first ingredient to check.
 * @param ingredient2 The second ingredient to check.
 * @param ingredient3 The third ingredient to check.
 * @return True if all the specified ingredients are present, False otherwise.
 */
fun loopPrecedenceOfLogicalOperators(numOfIngredients: Int, ingredientsList: List<String>, ingredient1: String, ingredient2: String, ingredient3: String): Boolean {

    var checkIngredient1 = false
    var checkIngredient2 = false
    var checkIngredient3 = false

    for (ingredient in ingredientsList) {
        if (ingredient == ingredient1) {
            checkIngredient1 = true
        } else if (ingredient == ingredient2) {
            checkIngredient2 = true
        } else if (ingredient == ingredient3) {
            checkIngredient3 = true
        }
    }

    return checkIngredient1 && checkIngredient2 && checkIngredient3
}
/**
 * A Chef is preparing a dish and needs to determine if a certain combination of ingredients is available.
 * The Chef will loop through the list of ingredients and use logical operators to check if the ingredients are present or not.
 *
 * @param num_of_ingredients The total number of ingredients in the list.
 * @param ingredients_list A list of all the ingredients available.
 * @param ingredient1 The first ingredient to check.
 * @param ingredient2 The second ingredient to check.
 * @param ingredient3 The third ingredient to check.
 * @return True if all the specified ingredients are present, False otherwise.
 */
fun loopPrecedenceOfLogicalOperators(numOfIngredients: Int, ingredientsList: List<String>, ingredient1: String, ingredient2: String, ingredient3: String): Boolean {
/**
 * A Chef is preparing a dish and needs to determine if a certain combination of ingredients is available.
 * The Chef will loop through the list of ingredients and use logical operators to check if the ingredients are present or not.
 *
 * @param num_of_ingredients The total number of ingredients in the list.
 * @param ingredients_list A list of all the ingredients available.
 * @param ingredient1 The first ingredient to check.
 * @param ingredient2 The second ingredient to check.
 * @param ingredient3 The third ingredient to check.
 * @return True if all the specified ingredients are present, False otherwise.
 */
fun loopPrecedenceOfLogicalOperators(numOfIngredients: Int, ingredientsList: List<String>, ingredient1: String, ingredient2: String, ingredient3: String): Boolean {

    var checkIngredient1 = false
    var checkIngredient2 = false
    var checkIngredient3 = false

    for (ingredient in ingredientsList) {
        if (ingredient == ingredient1) {
            checkIngredient1 = true
        } else if (ingredient == ingredient2) {
            checkIngredient2 = true
        } else if (ingredient == ingredient3) {
            checkIngredient3 = true
        }
    }

    return checkIngredient1 && checkIngredient2 && checkIngredient3
}