Sysdig interview question

Sorting strings and Binary tree