Binary Search Tree Problems Leetcode Sql Server