How would you go about splitting a normal string in to as many identical pieces as possible whilst using all characters. For example
a = "abab"
Would return "ab"
, whereas with
b= "ababc"
It would return "ababc"
, as it can't be split into identical pieces using all letters.