Domanda di colloquio di Cognizant

Was asked to write a simple palindrome code