Vapulus interview question

how to solve palindrome problem with js