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.
Not enough information for an issue.
It seems that you are using a brute force solution. there are more than 100 testcases in Ruby version.
You need to return the value instead of printing it, all katas on this website work like this :). Just either remove puts or remove puts and add return, both do the same thing but not adding return evaluates the last thing, so return isn't needed.