Count Distinct Substrings Leetcode 75th Question