Revolent Interview Question

Sort an array using binary tree.