/**
 * The modifyRecipe function takes in two lists: ingredients and instructions. It modifies the recipe
 * by replacing one specific ingredient with a new one. This exercise challenges the chef to use indexing
 * to modify the ingredient list.
 *
 * @param ingredients A list of ingredients in the recipe.
 * @param instructions A list of cooking instructions for the recipe.
 * @return A tuple containing the modified ingredients list and the original instructions list.
 */
fun modifyRecipe(ingredients: MutableList<String>, instructions: List<String>): Pair<List<String>, List<String>> {

    // Replace the fifth ingredient with a new ingredient
    ingredients[4] = "Mystery Spice"
    
    return Pair(ingredients, instructions)
}
/**
 * The modifyRecipe function takes in two lists: ingredients and instructions. It modifies the recipe
 * by replacing one specific ingredient with a new one. This exercise challenges the chef to use indexing
 * to modify the ingredient list.
 *
 * @param ingredients A list of ingredients in the recipe.
 * @param instructions A list of cooking instructions for the recipe.
 * @return A tuple containing the modified ingredients list and the original instructions list.
 */
fun modifyRecipe(ingredients: MutableList<String>, instructions: List<String>): Pair<List<String>, List<String>> {
/**
 * The modifyRecipe function takes in two lists: ingredients and instructions. It modifies the recipe
 * by replacing one specific ingredient with a new one. This exercise challenges the chef to use indexing
 * to modify the ingredient list.
 *
 * @param ingredients A list of ingredients in the recipe.
 * @param instructions A list of cooking instructions for the recipe.
 * @return A tuple containing the modified ingredients list and the original instructions list.
 */
fun modifyRecipe(ingredients: MutableList<String>, instructions: List<String>): Pair<List<String>, List<String>> {

    // Replace the fifth ingredient with a new ingredient
    ingredients[4] = "Mystery Spice"
    
    return Pair(ingredients, instructions)
}