/**
 * Given a chef and a list of ingredients, this function counts the number of recipes
 * that can be created by the chef using the ingredients.
 *
 * @param chef The name of the chef.
 * @param ingredients A list of strings representing the available ingredients.
 * @return The number of recipes that can be created.
 */
fun countRecipes(chef: String, ingredients: List<String>): Int {

    var recipeCount = 0

    // Nested loop to generate combinations of ingredients
    for (i in ingredients.indices) {
        for (j in i + 1 until ingredients.size) {
            for (k in j + 1 until ingredients.size) {
                // Create a recipe using the three selected ingredients
                val recipe = "${chef}'s ${ingredients[i]}, ${ingredients[j]}, and ${ingredients[k]} Recipe"

                // Count the recipe
                recipeCount++
            }
        }
    }

    return recipeCount
}
/**
 * Given a chef and a list of ingredients, this function counts the number of recipes
 * that can be created by the chef using the ingredients.
 *
 * @param chef The name of the chef.
 * @param ingredients A list of strings representing the available ingredients.
 * @return The number of recipes that can be created.
 */
fun countRecipes(chef: String, ingredients: List<String>): Int {
/**
 * Given a chef and a list of ingredients, this function counts the number of recipes
 * that can be created by the chef using the ingredients.
 *
 * @param chef The name of the chef.
 * @param ingredients A list of strings representing the available ingredients.
 * @return The number of recipes that can be created.
 */
fun countRecipes(chef: String, ingredients: List<String>): Int {

    var recipeCount = 0

    // Nested loop to generate combinations of ingredients
    for (i in ingredients.indices) {
        for (j in i + 1 until ingredients.size) {
            for (k in j + 1 until ingredients.size) {
                // Create a recipe using the three selected ingredients
                val recipe = "${chef}'s ${ingredients[i]}, ${ingredients[j]}, and ${ingredients[k]} Recipe"

                // Count the recipe
                recipeCount++
            }
        }
    }

    return recipeCount
}