Amazon interview question

Convert binary tree to binary search tree