Capgemini Interview Question

1 : Write a program for string reverse.