chrfrenning / upgraded-umbrella

The Unlicense
1 stars 0 forks source link

Service impl - getNumberofCountries(citycount, minpopulation, maxpopulation) #10

Closed alina-lapina closed 1 year ago

alina-lapina commented 1 year ago

The service interface exposes the following methods that have to be implemented by a servant class

getNumberofCountries(citycount, minpopulation, maxpopulation)

i. Return the number of countries that contain atleast ‘citycount’ number of cities where each city has population between ‘minpopulation’ and ‘maxpopulation’. ii. eg:- city count=30, min population= 100,000, max population = 800,000 => result = 30

Unit tests