Count Distinct Substrings Leetcode Two Sums Solution Tree Press