Count Distinct Substrings Leetcode 75