Wipro Interview Question

An program to reverse the string