Cognizant interview question

Write a program for Palindrome using javascript