Problem 2418 · Easy
Pair each name with its height and repeatedly take the tallest remaining person.
Open the interactive visualisation