- Time : O(n^2)
- Space : O(n)
c++
1 | int helper(string& s, int len) { |