/**
 * The chef wants to modify the ingredients of a recipe using slicing and a while loop.
 * The ingredients are represented as a list of strings, and the index is the starting position
 * to modify the ingredients. Modify the elements in the ingredients list by appending 'Chef Special'
 * to each ingredient starting from the given index using a while loop.
 *
 * @param ingredients List of strings representing the ingredients of a recipe
 * @param index Starting position to modify the ingredients
 * @return Modified list of ingredients
 */
fun modifyIngredients(ingredients: MutableList<String>, index: Int): List<String> {

    var currentIndex = index
    while (currentIndex < ingredients.size) {
        ingredients[currentIndex] += "Chef Special"
        currentIndex++
    }
    return ingredients
}
/**
 * The chef wants to modify the ingredients of a recipe using slicing and a while loop.
 * The ingredients are represented as a list of strings, and the index is the starting position
 * to modify the ingredients. Modify the elements in the ingredients list by appending 'Chef Special'
 * to each ingredient starting from the given index using a while loop.
 *
 * @param ingredients List of strings representing the ingredients of a recipe
 * @param index Starting position to modify the ingredients
 * @return Modified list of ingredients
 */
fun modifyIngredients(ingredients: MutableList<String>, index: Int): List<String> {
/**
 * The chef wants to modify the ingredients of a recipe using slicing and a while loop.
 * The ingredients are represented as a list of strings, and the index is the starting position
 * to modify the ingredients. Modify the elements in the ingredients list by appending 'Chef Special'
 * to each ingredient starting from the given index using a while loop.
 *
 * @param ingredients List of strings representing the ingredients of a recipe
 * @param index Starting position to modify the ingredients
 * @return Modified list of ingredients
 */
fun modifyIngredients(ingredients: MutableList<String>, index: Int): List<String> {

    var currentIndex = index
    while (currentIndex < ingredients.size) {
        ingredients[currentIndex] += "Chef Special"
        currentIndex++
    }
    return ingredients
}