/**
 * This function takes a budget and a set of expenses, and calculates the remaining budget after deducting the expenses.
 *
 * @param budget The total budget available.
 * @param expenses A set of expenses incurred.
 * @return The remaining budget after deducting the expenses.
 */
fun calculateBudgetExpenses(budget: Double, expenses: Set<Double>): Double {

    var remainingBudget = budget

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

    return remainingBudget
}
/**
 * This function takes a budget and a set of expenses, and calculates the remaining budget after deducting the expenses.
 *
 * @param budget The total budget available.
 * @param expenses A set of expenses incurred.
 * @return The remaining budget after deducting the expenses.
 */
fun calculateBudgetExpenses(budget: Double, expenses: Set<Double>): Double {
/**
 * This function takes a budget and a set of expenses, and calculates the remaining budget after deducting the expenses.
 *
 * @param budget The total budget available.
 * @param expenses A set of expenses incurred.
 * @return The remaining budget after deducting the expenses.
 */
fun calculateBudgetExpenses(budget: Double, expenses: Set<Double>): Double {

    var remainingBudget = budget

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

    return remainingBudget
}