give root binary search tree rearrange tree inorder leftmost node tree root tree node leave child right child Example 1input root 53624null81nullnullnull79output 1null2null3null4null5null6null7null8null9example 2input root 517output 1null5null7 ConstraintsThe number node give tree range 1 1000 Nodeval 1000