Count Distinct Substrings Leetcode 1508902321