Question d’entretien chez Capgemini

Write code for the given string is palindrome or not