FAST Interview Question

Write an isPalindrome function.