I have a string, now want to count the minimum number of substrings such that the letters in the substring should occur only once.
Example: