Mental Model
We want to visit the outer edge nodes of a tree in a specific order: left edge top-down, leaves left to right, then right edge bottom-up.
Analogy: Imagine walking around the outside of a garden shaped like a tree, touching all the plants on the boundary without going inside.
1
/ \
2 3
/ \ \
4 5 6
/ \ /
7 8 9
Boundary order: 1 -> 2 -> 4 -> 7 -> 8 -> 9 -> 6 -> 3 -> null