/**
 * Given a set of expenses and a tax rate, calculate the total tax for an Accountant.
 *
 * @param expenses a set of numbers representing the expenses
 * @param taxRate a floating-point number representing the tax rate
 * @return the total tax calculated for the given expenses and tax rate
 */
fun calculateTax(expenses: Set<Double>, taxRate: Double): Double {

    var totalTax = 0.0

    for (expense in expenses) {
        val tax = expense * taxRate
        totalTax += tax
    }

    return totalTax
}
/**
 * Given a set of expenses and a tax rate, calculate the total tax for an Accountant.
 *
 * @param expenses a set of numbers representing the expenses
 * @param taxRate a floating-point number representing the tax rate
 * @return the total tax calculated for the given expenses and tax rate
 */
fun calculateTax(expenses: Set<Double>, taxRate: Double): Double {
/**
 * Given a set of expenses and a tax rate, calculate the total tax for an Accountant.
 *
 * @param expenses a set of numbers representing the expenses
 * @param taxRate a floating-point number representing the tax rate
 * @return the total tax calculated for the given expenses and tax rate
 */
fun calculateTax(expenses: Set<Double>, taxRate: Double): Double {

    var totalTax = 0.0

    for (expense in expenses) {
        val tax = expense * taxRate
        totalTax += tax
    }

    return totalTax
}