/**
 * This function calculates the total population of a continent, country, and city.
 *
 * @param continentPopulation The population of the continent.
 * @param countryPopulation The population of the country.
 * @param cityPopulation The population of the city.
 * @return The total population.
 */
fun calculateTotalPopulation(continentPopulation: Int?, countryPopulation: Int?, cityPopulation: Int?): Int {

    // Handle None values
    var continentPop = continentPopulation ?: 0
    var countryPop = countryPopulation ?: 0
    var cityPop = cityPopulation ?: 0

    // Calculate the total population
    val totalPopulation = continentPop + countryPop + cityPop

    return totalPopulation
}
/**
 * This function calculates the total population of a continent, country, and city.
 *
 * @param continentPopulation The population of the continent.
 * @param countryPopulation The population of the country.
 * @param cityPopulation The population of the city.
 * @return The total population.
 */
fun calculateTotalPopulation(continentPopulation: Int?, countryPopulation: Int?, cityPopulation: Int?): Int {
/**
 * This function calculates the total population of a continent, country, and city.
 *
 * @param continentPopulation The population of the continent.
 * @param countryPopulation The population of the country.
 * @param cityPopulation The population of the city.
 * @return The total population.
 */
fun calculateTotalPopulation(continentPopulation: Int?, countryPopulation: Int?, cityPopulation: Int?): Int {

    // Handle None values
    var continentPop = continentPopulation ?: 0
    var countryPop = countryPopulation ?: 0
    var cityPop = cityPopulation ?: 0

    // Calculate the total population
    val totalPopulation = continentPop + countryPop + cityPop

    return totalPopulation
}