Capgemini interview question

Programs like palindrome, reverse a string.