Publicis Sapient interview question

Boundary Traversal In Binary Tree