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.
convert it to array and remove that specific element ( that's what I did) there are better ways too;
Depends on the language you are using.
You're creating an array 1 element shorter that you should. When n is 1 you create an array of length 1 and then try to write two elements in it.
Read this: https://docs.codewars.com/training/troubleshooting/#expected-the-same