Count Distinct Element Leetcode Problems Two