Count Distinct Substrings Leetcode Sql 50