Meta interview question

Modify a give binary tree into a doubly linked list