modify solution to one function for 98 validate BST problem