Pergunta de entrevista da empresa Xperi

write code for tree traversal and reverse the linked list