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.
You should check the string first if it's length is greater than 4,and then you can write the algorithm, it will run
Read this: https://docs.codewars.com/training/troubleshooting/#expected-the-same
There is another problem with your code too. Check which tests your code doesn't pass and fix it.
This comment is hidden because it contains spoiler information about the solution