Count Distinct Element Leetcode 150