Maveric Systems interview question

program for palindrome