BNP Paribas interview question

Select from a binary tree