Count Distinct Substrings Leetcode Problems Javascript Tutorial