System Design Problem Leetcode Sql