/**
 * This function counts the total number of fires a firefighter has encountered.
 *
 * @param firefighters A map where the keys represent firefighter names and the values represent the number of fires they have encountered.
 * @return The total number of fires encountered by all firefighters combined.
 */
fun countFirefighterFires(firefighters: Map<String, Int>): Int {

    // Initialize the total fire count
    var totalFires = 0

    // Iterate over each firefighter in the map
    for ((_, fireCount) in firefighters) {
        // Add the current firefighter's fire count to the total fire count
        totalFires += fireCount
    }

    return totalFires
}
/**
 * This function counts the total number of fires a firefighter has encountered.
 *
 * @param firefighters A map where the keys represent firefighter names and the values represent the number of fires they have encountered.
 * @return The total number of fires encountered by all firefighters combined.
 */
fun countFirefighterFires(firefighters: Map<String, Int>): Int {
/**
 * This function counts the total number of fires a firefighter has encountered.
 *
 * @param firefighters A map where the keys represent firefighter names and the values represent the number of fires they have encountered.
 * @return The total number of fires encountered by all firefighters combined.
 */
fun countFirefighterFires(firefighters: Map<String, Int>): Int {

    // Initialize the total fire count
    var totalFires = 0

    // Iterate over each firefighter in the map
    for ((_, fireCount) in firefighters) {
        // Add the current firefighter's fire count to the total fire count
        totalFires += fireCount
    }

    return totalFires
}