Amazon interview question

Data Structures and Algorithmns: Boundary of Binary Tree