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 Set<String> would make much more sense as a return type here (at least in static type languages).
You need not initialize arrLn[i] = 0 in java, since int being a primitive type is Initialized to 0 anyhow.
Apart from that, it's the perfect solution. No side effect to the original input array, neither you have created a copy of the array.