/**
 * The function calculates the remaining budget for a firefighter after deducting expenses.
 *
 * @param firefighterBudget A map representing the initial budget for the firefighter.
 * @param expenses A map representing the expenses of the firefighter.
 * @return A map representing the remaining budget after deducting expenses.
 *
 * Instructions:
 * - Iterate over the expenses map.
 * - For each key in the expenses map:
 *   - Subtract the value from the corresponding key in the firefighterBudget map.
 * - Return the updated firefighterBudget map.
 */
fun firefighterExpenses(firefighterBudget: MutableMap<String, Int>, expenses: Map<String, Int>): MutableMap<String, Int> {

    for ((expenseCategory, expenseAmount) in expenses) {
        firefighterBudget[expenseCategory] = firefighterBudget.getOrDefault(expenseCategory, 0) - expenseAmount
    }
    return firefighterBudget
}
/**
 * The function calculates the remaining budget for a firefighter after deducting expenses.
 *
 * @param firefighterBudget A map representing the initial budget for the firefighter.
 * @param expenses A map representing the expenses of the firefighter.
 * @return A map representing the remaining budget after deducting expenses.
 *
 * Instructions:
 * - Iterate over the expenses map.
 * - For each key in the expenses map:
 *   - Subtract the value from the corresponding key in the firefighterBudget map.
 * - Return the updated firefighterBudget map.
 */
fun firefighterExpenses(firefighterBudget: MutableMap<String, Int>, expenses: Map<String, Int>): MutableMap<String, Int> {
/**
 * The function calculates the remaining budget for a firefighter after deducting expenses.
 *
 * @param firefighterBudget A map representing the initial budget for the firefighter.
 * @param expenses A map representing the expenses of the firefighter.
 * @return A map representing the remaining budget after deducting expenses.
 *
 * Instructions:
 * - Iterate over the expenses map.
 * - For each key in the expenses map:
 *   - Subtract the value from the corresponding key in the firefighterBudget map.
 * - Return the updated firefighterBudget map.
 */
fun firefighterExpenses(firefighterBudget: MutableMap<String, Int>, expenses: Map<String, Int>): MutableMap<String, Int> {

    for ((expenseCategory, expenseAmount) in expenses) {
        firefighterBudget[expenseCategory] = firefighterBudget.getOrDefault(expenseCategory, 0) - expenseAmount
    }
    return firefighterBudget
}