Count Distinct Substrings Leetcode 150 Interview