Accenture Interview Question

Write a program for string reversal