ION Group interview question

Code Problem on Binary Search Tree