Arista Networks interview question

Find out if a given string is a palindrome,