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.
A problem with your code is not a kata issue, read this: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution about how to debug your code and if you need help, how to ask for it properly, without your code we can't know what you did wrong.
My code passed all the test cases but for the last one, it is throwing a Stack trace error. Could someone please help me figure out the issue?