update solution for validate BST.