Microsoft Interview Question

Link the leaf nodes of a binary tree into a linked list