System Design Problem Leetcode Sql Window