Pergunta de entrevista da empresa Appinventiv

Covert a tree into doubly linked list?