ASML interview question

How to implement a palyndromme function?