Infosys interview question

Program to reverse a string