ECI Telecom interview question

BST traversal