System Design Leetcode Problems Javascript Array Methods W3schools