AKUNA CAPITAL interview question

Sort a binary tree with efficiency limitation