Split a String Into the Max Number of Unique Substrings
Backtrack over every cut position, skipping any piece already used, and keep the largest count of unique pieces.
Backtrack over every cut position, skipping any piece already used, and keep the largest count of unique pieces.