IMO Health interview question

Data structures required for efficient tree sorting.