solve Validate Binary Search Tree