Pergunta de entrevista da empresa Honeywell

write a program to traverse a tree and reverse direction ? ha ha ha