/**
 * Given two lists of expenses, calculate the total expenses for each category.
 *
 * @param t1 List<Int>: contains expenses for category 1
 * @param t2 List<Int>: contains expenses for category 2
 * @return Pair<Int, Int>: contains the total expenses for each category in the same order as provided
 */
fun calculateTotalExpenses(t1: List<Int>, t2: List<Int>): Pair<Int, Int> {

    var totalExpensesCat1 = 0
    var totalExpensesCat2 = 0

    // Loop over each expense in category 1
    for (expense in t1) {
        // Add the expense to the total expenses for category 1
        totalExpensesCat1 += expense
    }

    // Loop over each expense in category 2
    for (expense in t2) {
        // Add the expense to the total expenses for category 2
        totalExpensesCat2 += expense
    }

    return Pair(totalExpensesCat1, totalExpensesCat2)
}
/**
 * Given two lists of expenses, calculate the total expenses for each category.
 *
 * @param t1 List<Int>: contains expenses for category 1
 * @param t2 List<Int>: contains expenses for category 2
 * @return Pair<Int, Int>: contains the total expenses for each category in the same order as provided
 */
fun calculateTotalExpenses(t1: List<Int>, t2: List<Int>): Pair<Int, Int> {
/**
 * Given two lists of expenses, calculate the total expenses for each category.
 *
 * @param t1 List<Int>: contains expenses for category 1
 * @param t2 List<Int>: contains expenses for category 2
 * @return Pair<Int, Int>: contains the total expenses for each category in the same order as provided
 */
fun calculateTotalExpenses(t1: List<Int>, t2: List<Int>): Pair<Int, Int> {

    var totalExpensesCat1 = 0
    var totalExpensesCat2 = 0

    // Loop over each expense in category 1
    for (expense in t1) {
        // Add the expense to the total expenses for category 1
        totalExpensesCat1 += expense
    }

    // Loop over each expense in category 2
    for (expense in t2) {
        // Add the expense to the total expenses for category 2
        totalExpensesCat2 += expense
    }

    return Pair(totalExpensesCat1, totalExpensesCat2)
}