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.
Maybe you could post your code (mark it as "Spoiler").
It is known that in any code it is bad practice to modify the input. It is not particular to this kata. If you want to mutate, mutate a copy. Note that lots of guys passed the kata (see at the top of the page).
If you modify the input you will fail all the random tests even if you pass the fixed ones. I just tried a few solutions and had no problem.
I think you modify the input.