GUVI interview question

Reverse the string using any language