OYO interview question

binary tree to doubly linked list