System Design Problem Leetcode Sql Window Functions Interview