/**
 * This function takes a list of dishes in stock and a map representing the menu.
 * It returns the dishes that can be prepared from the available ingredients.
 */
fun createMenu(dishesInStock: List<String>, menu: Map<String, List<String>>): List<String> {

    val availableDishes = mutableListOf<String>()

    for ((dish, ingredients) in menu) {
        // Check if any of the required ingredients are in stock
        if (ingredients.any { ingredient -> dishesInStock.contains(ingredient) }) {
            availableDishes.add(dish)
        }
    }

    return availableDishes
}
/**
 * This function takes a list of dishes in stock and a map representing the menu.
 * It returns the dishes that can be prepared from the available ingredients.
 */
fun createMenu(dishesInStock: List<String>, menu: Map<String, List<String>>): List<String> {
/**
 * This function takes a list of dishes in stock and a map representing the menu.
 * It returns the dishes that can be prepared from the available ingredients.
 */
fun createMenu(dishesInStock: List<String>, menu: Map<String, List<String>>): List<String> {

    val availableDishes = mutableListOf<String>()

    for ((dish, ingredients) in menu) {
        // Check if any of the required ingredients are in stock
        if (ingredients.any { ingredient -> dishesInStock.contains(ingredient) }) {
            availableDishes.add(dish)
        }
    }

    return availableDishes
}