Pergunta de entrevista da empresa Microsoft

Write a simple code which traverses a binary tree