Nanoheal interview question

Reverse string