/**
 * This function takes a recipe as a list of ingredients and a pantry as a list of available ingredients.
 * It returns a list of missing ingredients needed to complete the recipe.
 *
 * Example:
 * recipe = ["salt", "pepper", "sugar"]
 * pantry = ["pepper", "sugar"]
 * findMissingIngredients(recipe, pantry) -> ["salt"]
 */
fun findMissingIngredients(recipe: List<String>, pantry: List<String>): List<String> {

    // Use the subtract operator to find the missing ingredients
    val missingIngredients = recipe.filter { it !in pantry }

    return missingIngredients
}
/**
 * This function takes a recipe as a list of ingredients and a pantry as a list of available ingredients.
 * It returns a list of missing ingredients needed to complete the recipe.
 *
 * Example:
 * recipe = ["salt", "pepper", "sugar"]
 * pantry = ["pepper", "sugar"]
 * findMissingIngredients(recipe, pantry) -> ["salt"]
 */
fun findMissingIngredients(recipe: List<String>, pantry: List<String>): List<String> {
/**
 * This function takes a recipe as a list of ingredients and a pantry as a list of available ingredients.
 * It returns a list of missing ingredients needed to complete the recipe.
 *
 * Example:
 * recipe = ["salt", "pepper", "sugar"]
 * pantry = ["pepper", "sugar"]
 * findMissingIngredients(recipe, pantry) -> ["salt"]
 */
fun findMissingIngredients(recipe: List<String>, pantry: List<String>): List<String> {

    // Use the subtract operator to find the missing ingredients
    val missingIngredients = recipe.filter { it !in pantry }

    return missingIngredients
}