Wipro interview question

String reversal peogram