Question d’entretien chez Microsoft

Write the code to spirally print a tree.