/**
 * A chef is given a list of ingredients. The chef needs to check if each ingredient is available in their pantry.
 * Create a basic while loop to iterate through each ingredient and determine if it is in the pantry or not.
 */
fun chef(name: String, ingredients: List<String>) {

    val pantry = listOf("flour", "sugar", "eggs", "salt", "butter")
    var index = 0

    while (index < ingredients.size) {
        if (ingredients[index] in pantry) {
            println("${ingredients[index]} is available in the pantry.")
        } else {
            println("${ingredients[index]} is not available in the pantry.")
        }

        index++
    }
}
/**
 * A chef is given a list of ingredients. The chef needs to check if each ingredient is available in their pantry.
 * Create a basic while loop to iterate through each ingredient and determine if it is in the pantry or not.
 */
fun chef(name: String, ingredients: List<String>) {
/**
 * A chef is given a list of ingredients. The chef needs to check if each ingredient is available in their pantry.
 * Create a basic while loop to iterate through each ingredient and determine if it is in the pantry or not.
 */
fun chef(name: String, ingredients: List<String>) {

    val pantry = listOf("flour", "sugar", "eggs", "salt", "butter")
    var index = 0

    while (index < ingredients.size) {
        if (ingredients[index] in pantry) {
            println("${ingredients[index]} is available in the pantry.")
        } else {
            println("${ingredients[index]} is not available in the pantry.")
        }

        index++
    }
}