UrbanHop's Top-Rated Driver
UrbanHop is running a "Driver of the Month" shoutout, and it runs city by city — each city office celebrates its own driver, so the winner is always the best in one place rather than the best overall.
Drivers
| id | name | city | rating |
|---|---|---|---|
| 1 | Sam Rios | Austin | 4.9 |
| 2 | Priya Desai | Denver | 4.6 |
| 3 | Oscar Lund | Seattle | 4.8 |
| 4 | Nina Cole | Austin | 4.2 |
Input
The drivers table above is already built for you — those rows are not read from input. What does arrive is a single line naming the city being celebrated, spelled exactly as the city column spells it. Every city that gets asked about has at least one driver based in it.
Task: Print the name of the driver based in that city who has the highest rating.
Example: if the city under review had a single driver and she were called Ada Reyes, you'd print Ada Reyes.
Sign in to solve this problem
Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.
Sign in