/**
 * Given a list of ingredients and a list of cooking steps, this function will execute the cooking steps multiple times
 * and return a list of all the ingredients that are not used in any step.
 *
 * @param ingredients A list of ingredient names.
 * @param steps A list of cooking steps.
 * @return A list of ingredients that are not used in any step.
 *
 * Example:
 * ingredients = ['salt', 'pepper', 'sugar', 'flour']
 * steps = ['Mix salt and pepper', 'Add flour and sugar', 'Stir well']
 * cookRecipe(ingredients, steps) // Output: ['flour']
 */
fun cookRecipe(ingredients: List<String>, steps: List<String>): List<String> {

    val unusedIngredients = mutableListOf<String>()

    for (ingredient in ingredients) {
        var used = false
        for (step in steps) {
            if (ingredient in step) {
                used = true
                break
            }
        }
        if (!used) {
            unusedIngredients.add(ingredient)
        }
    }

    return unusedIngredients
}
/**
 * Given a list of ingredients and a list of cooking steps, this function will execute the cooking steps multiple times
 * and return a list of all the ingredients that are not used in any step.
 *
 * @param ingredients A list of ingredient names.
 * @param steps A list of cooking steps.
 * @return A list of ingredients that are not used in any step.
 *
 * Example:
 * ingredients = ['salt', 'pepper', 'sugar', 'flour']
 * steps = ['Mix salt and pepper', 'Add flour and sugar', 'Stir well']
 * cookRecipe(ingredients, steps) // Output: ['flour']
 */
fun cookRecipe(ingredients: List<String>, steps: List<String>): List<String> {
/**
 * Given a list of ingredients and a list of cooking steps, this function will execute the cooking steps multiple times
 * and return a list of all the ingredients that are not used in any step.
 *
 * @param ingredients A list of ingredient names.
 * @param steps A list of cooking steps.
 * @return A list of ingredients that are not used in any step.
 *
 * Example:
 * ingredients = ['salt', 'pepper', 'sugar', 'flour']
 * steps = ['Mix salt and pepper', 'Add flour and sugar', 'Stir well']
 * cookRecipe(ingredients, steps) // Output: ['flour']
 */
fun cookRecipe(ingredients: List<String>, steps: List<String>): List<String> {

    val unusedIngredients = mutableListOf<String>()

    for (ingredient in ingredients) {
        var used = false
        for (step in steps) {
            if (ingredient in step) {
                used = true
                break
            }
        }
        if (!used) {
            unusedIngredients.add(ingredient)
        }
    }

    return unusedIngredients
}