Count Distinct Element Leetcode Python Questions