/**
 * Given the list of accounts and expenses, calculate the total profit.
 *
 * @param accounts List of account balances
 * @param expenses List of expenses
 * @return Total profit
 */
fun calculateProfit(accounts: List<Int>, expenses: List<Int>): Int {

    var totalProfit = 0

    for (i in accounts.indices) {
        if (accounts[i] > expenses[i]) {
            totalProfit += accounts[i] - expenses[i]
        } else if (accounts[i] < expenses[i]) {
            totalProfit -= expenses[i] - accounts[i]
        }
    }

    return totalProfit
}
/**
 * Given the list of accounts and expenses, calculate the total profit.
 *
 * @param accounts List of account balances
 * @param expenses List of expenses
 * @return Total profit
 */
fun calculateProfit(accounts: List<Int>, expenses: List<Int>): Int {
/**
 * Given the list of accounts and expenses, calculate the total profit.
 *
 * @param accounts List of account balances
 * @param expenses List of expenses
 * @return Total profit
 */
fun calculateProfit(accounts: List<Int>, expenses: List<Int>): Int {

    var totalProfit = 0

    for (i in accounts.indices) {
        if (accounts[i] > expenses[i]) {
            totalProfit += accounts[i] - expenses[i]
        } else if (accounts[i] < expenses[i]) {
            totalProfit -= expenses[i] - accounts[i]
        }
    }

    return totalProfit
}