Maximum Distinct Elements Leetcode Problems