Maximum Distinct Elements Leetcode Interview