Count Distinct Element Leetcode Sql 50