update solution for Validate Binary Search Tree