Amazon Interview Question

Convert binary search tree to linked list