Maximum Distinct Elements Leetcode Javascript Questions W3schools