/**
 * This function takes a map as input, where the keys are the names of people and the values are their locations.
 * The function iterates over the map and saves each person from dangerous locations.
 * If a person is at a dangerous location, the function prints their name and the number of people saved so far,
 * and then breaks out of the loop to go to the next person.
 *
 * @param peopleLocations A map where keys are people names and values are their locations
 */
fun savePeople(peopleLocations: Map<String, String>) {

    var savedPeople = 0

    for ((person, location) in peopleLocations) {
        if (location == "Dangerous") {
            println("\nSaving $person...")
            savedPeople++
            println("Number of people saved so far: $savedPeople")
            continue
        }

        // Add your code here to save the person from a non-dangerous location
    }
}
/**
 * This function takes a map as input, where the keys are the names of people and the values are their locations.
 * The function iterates over the map and saves each person from dangerous locations.
 * If a person is at a dangerous location, the function prints their name and the number of people saved so far,
 * and then breaks out of the loop to go to the next person.
 *
 * @param peopleLocations A map where keys are people names and values are their locations
 */
fun savePeople(peopleLocations: Map<String, String>) {
/**
 * This function takes a map as input, where the keys are the names of people and the values are their locations.
 * The function iterates over the map and saves each person from dangerous locations.
 * If a person is at a dangerous location, the function prints their name and the number of people saved so far,
 * and then breaks out of the loop to go to the next person.
 *
 * @param peopleLocations A map where keys are people names and values are their locations
 */
fun savePeople(peopleLocations: Map<String, String>) {

    var savedPeople = 0

    for ((person, location) in peopleLocations) {
        if (location == "Dangerous") {
            println("\nSaving $person...")
            savedPeople++
            println("Number of people saved so far: $savedPeople")
            continue
        }

        // Add your code here to save the person from a non-dangerous location
    }
}