Scramble String

Solution Code

Time Complexity

O(n^4)

Space Complexity

O(n^3)