Hostaway interview question

Implement isPalindrome function (leetcode style)