Amazon interview question

Sorting algo,binary tree