Odyssey Interview Question

Palindrome checking method in javascript