Solved Validate BST problem.