/**
 * Given a list of receipts and a tuple of expenses, this function returns a list of missing expenses that are not listed
 * in any of the receipts.
 *
 * @param receipts A list of receipts containing various expenses.
 * @param expenses A tuple of expenses whose presence needs to be checked in the receipts.
 * @return A list of expenses that are missing in all of the receipts.
 */
fun findMissingExpenses(receipts: List<String>, expenses: List<String>): List<String> {

    val missingExpenses = mutableListOf<String>()

    // Iterate over each expense in the expenses list
    for (expense in expenses) {
        var expenseFound = false

        // Iterate over each receipt in the list of receipts
        for (receipt in receipts) {
            // Check if the expense is present in the current receipt
            if (receipt.contains(expense)) {
                // Mark the expense as found and break the inner loop
                expenseFound = true
                break
            }
        }

        // If the expense was not found in any of the receipts, add it to the list of missing expenses
        if (!expenseFound) {
            missingExpenses.add(expense)
        }
    }

    return missingExpenses
}
/**
 * Given a list of receipts and a tuple of expenses, this function returns a list of missing expenses that are not listed
 * in any of the receipts.
 *
 * @param receipts A list of receipts containing various expenses.
 * @param expenses A tuple of expenses whose presence needs to be checked in the receipts.
 * @return A list of expenses that are missing in all of the receipts.
 */
fun findMissingExpenses(receipts: List<String>, expenses: List<String>): List<String> {
/**
 * Given a list of receipts and a tuple of expenses, this function returns a list of missing expenses that are not listed
 * in any of the receipts.
 *
 * @param receipts A list of receipts containing various expenses.
 * @param expenses A tuple of expenses whose presence needs to be checked in the receipts.
 * @return A list of expenses that are missing in all of the receipts.
 */
fun findMissingExpenses(receipts: List<String>, expenses: List<String>): List<String> {

    val missingExpenses = mutableListOf<String>()

    // Iterate over each expense in the expenses list
    for (expense in expenses) {
        var expenseFound = false

        // Iterate over each receipt in the list of receipts
        for (receipt in receipts) {
            // Check if the expense is present in the current receipt
            if (receipt.contains(expense)) {
                // Mark the expense as found and break the inner loop
                expenseFound = true
                break
            }
        }

        // If the expense was not found in any of the receipts, add it to the list of missing expenses
        if (!expenseFound) {
            missingExpenses.add(expense)
        }
    }

    return missingExpenses
}