Maximum Distinct Elements Leetcode Python Interview