Company: IBM Backend Developer_15may
Difficulty: easy
Find Speedster A marathon results database holds one record per runner per race. Each record carries the marathon the runner entered, the runner's name, the runner's sex, the top speed the runner reached during that race, and the number of stops the runner took. Given the whole database and one query - a marathon name and a sex - report the speedster : the runner of that sex, in that marathon, who reached the highest top_speed . Two runners can reach the same top speed. When that happens the title goes to the one who took fewer stops . If they are still tied - same top speed and the same number of stops - the title goes to whichever of them appears earlier in the database listing . In the original task the records come from a paginated web API; here the whole database is given on standard input instead, so the program needs no network access. Function Description Complete the function findSpeedster . It receives the list of records (each with marathon , name , sex , top_speed as writte