Count Unique Substring Leetcode Contest