Question d’entretien chez Cognizant

I had to write a palindrome program