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.
I see you're using Javascript. They want you to "return" the result and not "print" it. Try replacing "print(total)" with "return total"
Also, please mark your comment as spoiler.
This kata seems to be a duplicate of another in 7 kyu. https://www.codewars.com/kata/57f36495c0bb25ecf50000e7
Please remove one or the other. (or maybe there is a big difference?)
This comment is hidden because it contains spoiler information about the solution
What was the issue? I'm getting the same error and am not sure why.