Microsoft interview question

Remove bst keys outside the given range