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.
Please don't give snippet or codes or method to solve a kata without using a spoiler flag, though it doesn't work. Users are supposed to solve the katas by themselves. I don't know what you do exactly but it's always delicate to modify an array while iterating on it. This kata is really easy for a 5 kyu (a fair rank would be 7 kyu), you should try and think by yourself. It's a good idea to print stuff to see what your function is doing in action. This can help: https://docs.codewars.com/training/troubleshooting/