Vois (India) interview question

Write a program to reverse string