Brightgrove Interview Question

Sorting binary tree