Maximum Distinct Elements Leetcode Python Beginner