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.
It would be very educational to look at the solutions. Or come up with a solution which does not time out. Like, really.
The sample test
shows that if the second index is past the end of the string, you simply reverse from the first index to the end of the string.