Count Distinct Substrings Leetcode Playground