Pergunta de entrevista da empresa Arista Networks

How would you detect palindromes?