AC Validate Binary Search Tree