Solve BinaryTreeToDoublyLinkedList.