/**
 * A function to calculate the total expenses from the accounting records.
 *
 * @param accountingRecords A dictionary containing the account names as keys and a list of expenses as values.
 * @return The total expenses from all the accounts.
 */
fun calculateTotalExpenses(accountingRecords: Map<String, List<Float>>): Float {

    var totalExpenses = 0f

    for ((_, expenses) in accountingRecords) {
        totalExpenses += expenses.sum()
    }

    return totalExpenses
}
/**
 * A function to calculate the total expenses from the accounting records.
 *
 * @param accountingRecords A dictionary containing the account names as keys and a list of expenses as values.
 * @return The total expenses from all the accounts.
 */
fun calculateTotalExpenses(accountingRecords: Map<String, List<Float>>): Float {
/**
 * A function to calculate the total expenses from the accounting records.
 *
 * @param accountingRecords A dictionary containing the account names as keys and a list of expenses as values.
 * @return The total expenses from all the accounts.
 */
fun calculateTotalExpenses(accountingRecords: Map<String, List<Float>>): Float {

    var totalExpenses = 0f

    for ((_, expenses) in accountingRecords) {
        totalExpenses += expenses.sum()
    }

    return totalExpenses
}