Uber interview question

Graph traversal - BST traversal but required the optimal solution