validate binary search tree solution leetcode