System Design Problem Leetcode 1509