Solution for Recover Binary Search Tree O(n) space and constant space.