ASML Interview Question

How to implement a palyndromme function?