athenahealth interview question

How do you convert a BST into a doubly linked list