Pregunta de entrevista de Xperi

write code for tree traversal and reverse the linked list