/**
 * This function takes the continent and population of a country and
 * returns the classification of the country based on the given conditions:
 *
 * - If the country is in Asia and its population is greater than 1 billion, it is classified as 'Large Asian Country'.
 *
 * - If the country is in Europe or Africa and its population is between 50 million and 500 million (inclusive),
 * it is classified as 'Medium Country'.
 *
 * - If the country is in South America and its population is less than 10 million, it is classified as 'Small South American Country'.
 *
 * - For any other conditions, the country is classified as 'Unclassified Country'.
 *
 * @param continent The continent in which the country is located.
 * @param population The population of the country.
 * @return The classification of the country.
 */
fun classifyCountry(continent: String, population: Int): String {

    return when {
        continent == "Asia" && population > 1000000000 -> "Large Asian Country"
        (continent == "Europe" || continent == "Africa") && population in 50000000..500000000 -> "Medium Country"
        continent == "South America" && population < 10000000 -> "Small South American Country"
        else -> "Unclassified Country"
    }
}
/**
 * This function takes the continent and population of a country and
 * returns the classification of the country based on the given conditions:
 *
 * - If the country is in Asia and its population is greater than 1 billion, it is classified as 'Large Asian Country'.
 *
 * - If the country is in Europe or Africa and its population is between 50 million and 500 million (inclusive),
 * it is classified as 'Medium Country'.
 *
 * - If the country is in South America and its population is less than 10 million, it is classified as 'Small South American Country'.
 *
 * - For any other conditions, the country is classified as 'Unclassified Country'.
 *
 * @param continent The continent in which the country is located.
 * @param population The population of the country.
 * @return The classification of the country.
 */
fun classifyCountry(continent: String, population: Int): String {
/**
 * This function takes the continent and population of a country and
 * returns the classification of the country based on the given conditions:
 *
 * - If the country is in Asia and its population is greater than 1 billion, it is classified as 'Large Asian Country'.
 *
 * - If the country is in Europe or Africa and its population is between 50 million and 500 million (inclusive),
 * it is classified as 'Medium Country'.
 *
 * - If the country is in South America and its population is less than 10 million, it is classified as 'Small South American Country'.
 *
 * - For any other conditions, the country is classified as 'Unclassified Country'.
 *
 * @param continent The continent in which the country is located.
 * @param population The population of the country.
 * @return The classification of the country.
 */
fun classifyCountry(continent: String, population: Int): String {

    return when {
        continent == "Asia" && population > 1000000000 -> "Large Asian Country"
        (continent == "Europe" || continent == "Africa") && population in 50000000..500000000 -> "Medium Country"
        continent == "South America" && population < 10000000 -> "Small South American Country"
        else -> "Unclassified Country"
    }
}