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.
The kata tells you to create a solution but it is more of a bugfix in this case. Change the descrpition or the preloaded solution to make the description consistent.
Spacing in first solution is inconsistent, making it hard to read
https://github.com/airbnb/javascript#whitespace
Anyway. That's not the point. This kata doesn't have to use loops because it's solvable through sorting. Maybe you should drop initial code entirely, and leave only function declaration?
Still a duplicate.