Count Distinct Substrings Leetcode Playground Games