Count Distinct Substrings Leetcode Problems On Linked