System Design Problem Leetcode Two Pointers