Amazon Interview Question

Remove elements outside a range from a binary search tree