/**
 * Given a dictionary representing different zoos and their animal populations, return the total population of all zoos.
 *
 * @param zooDict A dictionary representing different zoos and their animal populations.
 * @return The total population of all zoos.
 */
fun sumPopulation(zooDict: Map<String, Map<String, Int>>): Int {

    var totalPopulation = 0
    for (zoo in zooDict.values) {
        totalPopulation += zoo.values.sum()
    }
    return totalPopulation
}
/**
 * Given a dictionary representing different zoos and their animal populations, return the total population of all zoos.
 *
 * @param zooDict A dictionary representing different zoos and their animal populations.
 * @return The total population of all zoos.
 */
fun sumPopulation(zooDict: Map<String, Map<String, Int>>): Int {
/**
 * Given a dictionary representing different zoos and their animal populations, return the total population of all zoos.
 *
 * @param zooDict A dictionary representing different zoos and their animal populations.
 * @return The total population of all zoos.
 */
fun sumPopulation(zooDict: Map<String, Map<String, Int>>): Int {

    var totalPopulation = 0
    for (zoo in zooDict.values) {
        totalPopulation += zoo.values.sum()
    }
    return totalPopulation
}