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.
This is the type of code you write when you're getting paid hourly.
CodeWars assumes that you have at least the basic knowledge for the level you're attempting, so you might want to check out YouTube beginner programming courses for your selected language and start there, then come back when you've gotten the foundations under you.
I think for most solutions using a loop, if you start the loop above 0, it never checks for values below 0.