There is a database of counties, where a country is implemented as follows:
case class Country(name: String, visa: Boolean, price: BigDecimal, travelHours: Double)
We aim to help UK clients find the best countries for their vacations. We need a function that will return a list of country names where clients do not need a visa, the trip cost doesn't exceed 10000 euros, and journey time doesn't exceed 5 hours.
You can implement three filtering functions or combine them all into one.