Wipro interview question

An program to reverse the string