Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I used the same idea but yours is much shorter, because I didn't know c++ had a gcd function, that is really cool :3
We need to return a string without the first and last character. It does not matter how we solve this problem (create a new string or delete characters from a local variable).
ps: Sorry for my English. I am not a native speaker.
But you actually didn't "remove" the characters.