Infosys interview question

Palindrome and Reverse a string