System Design Leetcode Problems Javascript Array Of Tuples In Swift