validate BST, check if inorder traversal result is sorted