eBay interview question

Turn a binary search tree into a linked list