Count Distinct Substrings Leetcode Sql Top 50