Count Distinct Substrings Leetcode Sql Top