Count Distinct Element Leetcode Python Challenges