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.
Your code is not exactly correct, it's not a valid solution of a Codewars kata. See this article for some hints: https://docs.codewars.com/training/training-example#writing-a-solution
The code I wrote is correct. I checked it on VS and it runs smothly, but it still gives an error when testing with the sample tests. As a beginner, the fact that no kind of info is given to know more or less where to start is disssapointing.