Pregunta de entrevista de Tata Consultancy Services

Reverse a linked list. Create a tree.