/**
 * Given a list of geography regions and their corresponding populations,
 * this function calculates the population density for each region and returns a new list.
 *
 * @param geography A list of geography regions.
 * @param population A list of corresponding populations for each region.
 * @return A new list of population densities for each region.
 *
 * Example:
 * calculatePopulationDensity(listOf("City A", "City B", "City C"), listOf(100000, 50000, 75000))
 * returns [2000.0, 2500.0, 3000.0]
 */
fun calculatePopulationDensity(geography: List<Int>, population: List<Int>): List<Double> {

    val populationDensity = mutableListOf<Double>()
    for (i in geography.indices) {
        // Calculate the population density and append it to the new list
        populationDensity.add(population[i].toDouble() / geography[i])
    }
    return populationDensity
}
/**
 * Given a list of geography regions and their corresponding populations,
 * this function calculates the population density for each region and returns a new list.
 *
 * @param geography A list of geography regions.
 * @param population A list of corresponding populations for each region.
 * @return A new list of population densities for each region.
 *
 * Example:
 * calculatePopulationDensity(listOf("City A", "City B", "City C"), listOf(100000, 50000, 75000))
 * returns [2000.0, 2500.0, 3000.0]
 */
fun calculatePopulationDensity(geography: List<Int>, population: List<Int>): List<Double> {
/**
 * Given a list of geography regions and their corresponding populations,
 * this function calculates the population density for each region and returns a new list.
 *
 * @param geography A list of geography regions.
 * @param population A list of corresponding populations for each region.
 * @return A new list of population densities for each region.
 *
 * Example:
 * calculatePopulationDensity(listOf("City A", "City B", "City C"), listOf(100000, 50000, 75000))
 * returns [2000.0, 2500.0, 3000.0]
 */
fun calculatePopulationDensity(geography: List<Int>, population: List<Int>): List<Double> {

    val populationDensity = mutableListOf<Double>()
    for (i in geography.indices) {
        // Calculate the population density and append it to the new list
        populationDensity.add(population[i].toDouble() / geography[i])
    }
    return populationDensity
}