Count Distinct Element Leetcode Sql Window