Capgemini Interview Question

Programs like palindrome, reverse a string.