/**
 * This function checks if the ingredient is available in the pantry and if not, it adds it to the shopping list
 */
fun prepareIngredient(ingredient: String): Pair<Map<String, Int>, Map<String, Int>> {

    val pantry = mutableMapOf(
        "flour" to 1000,
        "sugar" to 500,
        "salt" to 200,
        "butter" to 250
    )
    val shoppingList = mutableMapOf<String, Int>()

    if (!pantry.containsKey(ingredient)) {
        shoppingList[ingredient] = 1
    } else {
        pantry[ingredient] = pantry.getOrDefault(ingredient, 0) - 1
    }

    return Pair(pantry, shoppingList)
}
/**
 * This function checks if the ingredient is available in the pantry and if not, it adds it to the shopping list
 */
fun prepareIngredient(ingredient: String): Pair<Map<String, Int>, Map<String, Int>> {
/**
 * This function checks if the ingredient is available in the pantry and if not, it adds it to the shopping list
 */
fun prepareIngredient(ingredient: String): Pair<Map<String, Int>, Map<String, Int>> {

    val pantry = mutableMapOf(
        "flour" to 1000,
        "sugar" to 500,
        "salt" to 200,
        "butter" to 250
    )
    val shoppingList = mutableMapOf<String, Int>()

    if (!pantry.containsKey(ingredient)) {
        shoppingList[ingredient] = 1
    } else {
        pantry[ingredient] = pantry.getOrDefault(ingredient, 0) - 1
    }

    return Pair(pantry, shoppingList)
}