/**
 * This function calculates the total salary for each accountant based on their hourly rate and working hours.
 *
 * @param salaries a list of integers representing the hourly rates of accountants
 * @param workingHours a list of integers representing the working hours of accountants
 * @return totalSalary an integer representing the total salary for all accountants
 *
 * Note:
 * - The salaries and workingHours lists have the same length, indicating one-to-one correspondence between them.
 */
fun calculateTotalSalary(salaries: List<Int>, workingHours: List<Int>): Int {

    var totalSalary = 0

    // Iterate over the indices of the input lists
    for (i in salaries.indices) {
        // Calculate the salary for the current accountant
        val salary = salaries[i] * workingHours[i]

        // Add the calculated salary to the totalSalary variable
        totalSalary += salary
    }

    return totalSalary
}
/**
 * This function calculates the total salary for each accountant based on their hourly rate and working hours.
 *
 * @param salaries a list of integers representing the hourly rates of accountants
 * @param workingHours a list of integers representing the working hours of accountants
 * @return totalSalary an integer representing the total salary for all accountants
 *
 * Note:
 * - The salaries and workingHours lists have the same length, indicating one-to-one correspondence between them.
 */
fun calculateTotalSalary(salaries: List<Int>, workingHours: List<Int>): Int {
/**
 * This function calculates the total salary for each accountant based on their hourly rate and working hours.
 *
 * @param salaries a list of integers representing the hourly rates of accountants
 * @param workingHours a list of integers representing the working hours of accountants
 * @return totalSalary an integer representing the total salary for all accountants
 *
 * Note:
 * - The salaries and workingHours lists have the same length, indicating one-to-one correspondence between them.
 */
fun calculateTotalSalary(salaries: List<Int>, workingHours: List<Int>): Int {

    var totalSalary = 0

    // Iterate over the indices of the input lists
    for (i in salaries.indices) {
        // Calculate the salary for the current accountant
        val salary = salaries[i] * workingHours[i]

        // Add the calculated salary to the totalSalary variable
        totalSalary += salary
    }

    return totalSalary
}