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 are a genius... if you thought of it yourself
It's reversing because the i is being pushed each time in the new string which is making it reversed
let's say input is "hello world"
when we're running this code we're putting in h first time thn e thn l thn l thn o and so on
so h is being pushed to right which is making it go reverse
h first thn e being - eh thn l so leh like this
I'm a newbie too btw hope this helps