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.
Is this meant to be a golfing kata? The description is extremely unclear as to what is expected here.
No random tests.
If this is supposed to be the meaning of the kata, it is not tested.
Also, if this is so important, one would think this should also be tested.
Without these conditions, this kata would otherwise appear to be a duplicate. Although I don't have time to search for it, I remember a kata with an array of values meant to be handled based on an array of indices.