BlackRock interview question

BST traversal