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.
Not trying to be rude, but this isn't work. Getting a working solution out fast is what flys in competitive programming. I got the solution out fast and didn't think about refactoring code to make things more extensible - for future use.
If you haven't noticed already, this Kata cannot be editted. Also making an extra function doesn't really mean much in this scenario....