Cognizant Interview Question

Write a program for Palindrome using javascript