add validate bst solution.