/**
 * A function to calculate the total number of hours worked on each job by an electrician.
 *
 * @param jobs A map containing job names as keys and the number of hours worked as values.
 * @return A map containing job names as keys and the total number of hours worked on each job as values.
 */
fun calculateTotalHours(jobs: Map<String, Int>): Map<String, Int> {

    val totalHours = mutableMapOf<String, Int>()
    for ((job, hours) in jobs) {
        totalHours[job] = totalHours.getOrDefault(job, 0) + hours
    }
    return totalHours
}
/**
 * A function to calculate the total number of hours worked on each job by an electrician.
 *
 * @param jobs A map containing job names as keys and the number of hours worked as values.
 * @return A map containing job names as keys and the total number of hours worked on each job as values.
 */
fun calculateTotalHours(jobs: Map<String, Int>): Map<String, Int> {
/**
 * A function to calculate the total number of hours worked on each job by an electrician.
 *
 * @param jobs A map containing job names as keys and the number of hours worked as values.
 * @return A map containing job names as keys and the total number of hours worked on each job as values.
 */
fun calculateTotalHours(jobs: Map<String, Int>): Map<String, Int> {

    val totalHours = mutableMapOf<String, Int>()
    for ((job, hours) in jobs) {
        totalHours[job] = totalHours.getOrDefault(job, 0) + hours
    }
    return totalHours
}