VRIZE interview question

Write a program on reversing a string.