Split a String Into the Max Number of Unique Substrings | Leetcode 1593