Binary Search Tree Problems Leetcode Sql