Count Distinct Element Leetcode Sql