System Design Problem Leetcode Sql 50