Elsevier Interview Question

Implement isPalindrome function.