people[i] is the name of player i and heights[i] is their height in millimeters. All heights are distinct, but names may repeat.
Return the players' names in the order they will stand in line, from the tallest to the shortest.people=['Oleg', 'Nina', 'Pavel'], heights=[176, 182, 169] → ['Nina', 'Oleg', 'Pavel']
Nina is the tallest (182), then Oleg (176), and Pavel (169) comes last.
people=['Sam', 'Lea', 'Sam'], heights=[150, 171, 190] → ['Sam', 'Lea', 'Sam']
Names may repeat: the second Sam is the tallest and the first Sam is the shortest.
heights[i] are distinctpeople=['Oleg', 'Nina', 'Pavel'], heights=[176, 182, 169]
['Nina', 'Oleg', 'Pavel']
Run checks the first 3 tests in your browser. Submit checks all 121 tests on the server, hidden ones included.