Gap Inc. Interview Question

Print the rightmost nodes in a tree.