Fugro interview question

Palindrome question