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 author of that translation is: https://www.codewars.com/users/5c141ccc85e9ff3a720001d9
At this time, there are 209 completions in C++ so it'd seem the tests are likely correct. I'd recommend testing your solution in an IDE to verify it's correct.
Which language?