/**
 * This function takes a list of ingredients and a recipe and finds the common letters between them.
 *
 * @param ingredientsList List of ingredients (strings)
 * @param recipe A recipe (string)
 * @return A string containing the common letters between the ingredients and the recipe
 */
fun findCommonLetters(ingredientsList: List<String>, recipe: String): String {

    var commonLetters = ""

    for (ingredient in ingredientsList) {
        for (letter in ingredient) {
            if (letter.toLowerCase() in recipe.toLowerCase() && letter.toLowerCase() !in commonLetters.toLowerCase()) {
                commonLetters += letter
            }
        }
    }

    return commonLetters
}
/**
 * This function takes a list of ingredients and a recipe and finds the common letters between them.
 *
 * @param ingredientsList List of ingredients (strings)
 * @param recipe A recipe (string)
 * @return A string containing the common letters between the ingredients and the recipe
 */
fun findCommonLetters(ingredientsList: List<String>, recipe: String): String {
/**
 * This function takes a list of ingredients and a recipe and finds the common letters between them.
 *
 * @param ingredientsList List of ingredients (strings)
 * @param recipe A recipe (string)
 * @return A string containing the common letters between the ingredients and the recipe
 */
fun findCommonLetters(ingredientsList: List<String>, recipe: String): String {

    var commonLetters = ""

    for (ingredient in ingredientsList) {
        for (letter in ingredient) {
            if (letter.toLowerCase() in recipe.toLowerCase() && letter.toLowerCase() !in commonLetters.toLowerCase()) {
                commonLetters += letter
            }
        }
    }

    return commonLetters
}