Leetcode 828 Count Unique Characters of All Substrings of a Given String