Arista Networks Interview Question

Find out if a given string is a palindrome,