/**
 * The function calculates the total tax deduction for each employee.
 * It takes a list of employees as the argument, where each employee is represented by a dictionary containing
 * their information such as 'name', 'salary', 'deductions', etc.
 *
 * The function iterates over the list of employees and calculates the tax deduction based on their salary
 * and their existing deductions. The tax deduction is calculated as 10% of the employee's salary minus
 * their existing deductions.
 *
 * It finally prints the total tax deduction for each employee.
 *
 * @param employees A list of employees, each represented by a dictionary.
 */
fun countTaxDeduction(employees: List<Map<String, Any>>) {

    for (employee in employees) {
        var deduction = 0.0
        deduction += employee["salary"] as Int * 0.10 - employee["deductions"] as Int

        println("Total tax deduction for ${employee["name"]}: $deduction")
    }
}
/**
 * The function calculates the total tax deduction for each employee.
 * It takes a list of employees as the argument, where each employee is represented by a dictionary containing
 * their information such as 'name', 'salary', 'deductions', etc.
 *
 * The function iterates over the list of employees and calculates the tax deduction based on their salary
 * and their existing deductions. The tax deduction is calculated as 10% of the employee's salary minus
 * their existing deductions.
 *
 * It finally prints the total tax deduction for each employee.
 *
 * @param employees A list of employees, each represented by a dictionary.
 */
fun countTaxDeduction(employees: List<Map<String, Any>>) {
/**
 * The function calculates the total tax deduction for each employee.
 * It takes a list of employees as the argument, where each employee is represented by a dictionary containing
 * their information such as 'name', 'salary', 'deductions', etc.
 *
 * The function iterates over the list of employees and calculates the tax deduction based on their salary
 * and their existing deductions. The tax deduction is calculated as 10% of the employee's salary minus
 * their existing deductions.
 *
 * It finally prints the total tax deduction for each employee.
 *
 * @param employees A list of employees, each represented by a dictionary.
 */
fun countTaxDeduction(employees: List<Map<String, Any>>) {

    for (employee in employees) {
        var deduction = 0.0
        deduction += employee["salary"] as Int * 0.10 - employee["deductions"] as Int

        println("Total tax deduction for ${employee["name"]}: $deduction")
    }
}