Sopra Steria interview question

How to write code for palandrome.