Solved Validate Binary Search Tree problem