Arista Networks Interview Question

How would you detect palindromes?