Count Distinct Substrings Leetcode Problems Amazon