Check Binary Search Tree Leetcode Question