Tavant interview question

Write a programme for palindrome