Binary Search Tree Questions Leetcode Sql