/**
 * Given two lists containing income and expenses, return the total income after deducting expenses.
 *
 * @param income List<Float> A list containing different sources of income.
 * @param expenses List<Float> A list containing different expenses.
 * @return Float Total income after deducting expenses.
 */
fun calculateTotalIncome(income: List<Float>, expenses: List<Float>): Float {

    var totalIncome = income.sum()

    for (expense in expenses) {
        totalIncome -= expense
    }

    return totalIncome
}
/**
 * Given two lists containing income and expenses, return the total income after deducting expenses.
 *
 * @param income List<Float> A list containing different sources of income.
 * @param expenses List<Float> A list containing different expenses.
 * @return Float Total income after deducting expenses.
 */
fun calculateTotalIncome(income: List<Float>, expenses: List<Float>): Float {
/**
 * Given two lists containing income and expenses, return the total income after deducting expenses.
 *
 * @param income List<Float> A list containing different sources of income.
 * @param expenses List<Float> A list containing different expenses.
 * @return Float Total income after deducting expenses.
 */
fun calculateTotalIncome(income: List<Float>, expenses: List<Float>): Float {

    var totalIncome = income.sum()

    for (expense in expenses) {
        totalIncome -= expense
    }

    return totalIncome
}