Count Subsets With Given Difference Leetcode Sql