Count Distinct Element Leetcode Solutions