Count Distinct Element Leetcode Python Problems