Microsoft Interview Question

Traverse the boundary nodes of a binary tree.