ADP interview question

leet code easy binary search tree question