VRIZE Interview Question

Write a program on reversing a string.