Count Distinct Substring Leetcode 75