Bloomberg interview question

Given a range, trim a binary tree