Pregunta de entrevista de Appinventiv

Covert a tree into doubly linked list?