Capgemini Interview Question

Write a Code for palindrome?