Binary Tree Boundary Traversal is the process of traversing the boundary of a binary tree in an anticlockwise direction.
The boundary of a binary tree consists of three parts:
In this animation, you can see how these three components form the complete boundary of the tree.