Count Distinct Substrings Leetcode Problems Javascript Compiler