Appinventiv interview question

Reverse characters of given string