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.
If you're talking about the Sample tests, maybe you edited it? Click Reset of change it manually.
Are you sure about that? I've tried your current Java code and it worked.
This is the fixed test with that input:
And you can see the expected answer is 4 there.