Data Structure Questions Leetcode Sql