/**
 * Given a country name and a dictionary with country coordinates,
 * returns the latitude and longitude coordinates of the country.
 *
 * @param country name of the country
 * @param data dictionary with country coordinates
 * @return Pair<String, String>? latitude and longitude coordinates of the country
 */
fun getCoordinates(country: String, data: Map<String, String>): Pair<String, String>? {

    // Iterate over the dictionary entries
    for ((key, value) in data) {
        // Check if the country matches
        if (key == country) {
            // Retrieve the coordinates and split them
            val (latitude, longitude) = value.split(',')
            // Return a Pair with the latitude and longitude
            return Pair(latitude.trim(), longitude.trim())
        }
    }
    // If the country is not found in the dictionary, return null
    return null
}
/**
 * Given a country name and a dictionary with country coordinates,
 * returns the latitude and longitude coordinates of the country.
 *
 * @param country name of the country
 * @param data dictionary with country coordinates
 * @return Pair<String, String>? latitude and longitude coordinates of the country
 */
fun getCoordinates(country: String, data: Map<String, String>): Pair<String, String>? {
/**
 * Given a country name and a dictionary with country coordinates,
 * returns the latitude and longitude coordinates of the country.
 *
 * @param country name of the country
 * @param data dictionary with country coordinates
 * @return Pair<String, String>? latitude and longitude coordinates of the country
 */
fun getCoordinates(country: String, data: Map<String, String>): Pair<String, String>? {

    // Iterate over the dictionary entries
    for ((key, value) in data) {
        // Check if the country matches
        if (key == country) {
            // Retrieve the coordinates and split them
            val (latitude, longitude) = value.split(',')
            // Return a Pair with the latitude and longitude
            return Pair(latitude.trim(), longitude.trim())
        }
    }
    // If the country is not found in the dictionary, return null
    return null
}