BB&T interview question

Binary search tree issues. How to optimize