Determine if a BST is valid or not