/**
 * Given a dictionary of tasks performed by an electrician, calculate the total number of hours spent on those tasks.
 *
 * @param tasksDict A dictionary where the keys are the task names and the values are the number of hours spent on each task.
 * @return The total number of hours spent on all tasks.
 *
 * Example:
 * If tasksDict = mapOf("task1" to 5, "task2" to 3, "task3" to 2), the output will be 10.
 */
fun calculateTotalHours(tasksDict: Map<String, Int>): Int {

    var totalHours = 0

    for ((_, hours) in tasksDict) {
        if (hours <= 0) {
            continue
        }
        totalHours += hours
    }

    return totalHours
}
/**
 * Given a dictionary of tasks performed by an electrician, calculate the total number of hours spent on those tasks.
 *
 * @param tasksDict A dictionary where the keys are the task names and the values are the number of hours spent on each task.
 * @return The total number of hours spent on all tasks.
 *
 * Example:
 * If tasksDict = mapOf("task1" to 5, "task2" to 3, "task3" to 2), the output will be 10.
 */
fun calculateTotalHours(tasksDict: Map<String, Int>): Int {
/**
 * Given a dictionary of tasks performed by an electrician, calculate the total number of hours spent on those tasks.
 *
 * @param tasksDict A dictionary where the keys are the task names and the values are the number of hours spent on each task.
 * @return The total number of hours spent on all tasks.
 *
 * Example:
 * If tasksDict = mapOf("task1" to 5, "task2" to 3, "task3" to 2), the output will be 10.
 */
fun calculateTotalHours(tasksDict: Map<String, Int>): Int {

    var totalHours = 0

    for ((_, hours) in tasksDict) {
        if (hours <= 0) {
            continue
        }
        totalHours += hours
    }

    return totalHours
}