solution 2 for Recover Binary Search Tree