Apple interview question

binary search tree and salability