Microsoft Interview Question

Write a simple code which traverses a binary tree