This one is confusing. n is only supposed to be an odd number, but in the test cases, I am given even numbers. I have code that works only for odd numbers, and not for even ones. If n is supposed to be even, then how are the expansions supposed to be worked out?
The final result is checked for 140 characters, not the input string.
Fixed
This one is confusing. n is only supposed to be an odd number, but in the test cases, I am given even numbers. I have code that works only for odd numbers, and not for even ones. If n is supposed to be even, then how are the expansions supposed to be worked out?