Ex Libris Interview Question

write a program to find polyndrome in o(n)