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 cleaner if you wouldnt mutate the input array
why are you modifying the input array? it doesn't say we want to change the data of the input, just return an array based on the data from the input.
I tried this solution and I got the error that I couldnt use the array input before it was declared. Yet clearly it is declared.