Soved Recovre Binary Search Tree problem with constant space