Deloitte Interview Question

program to check palindrome in javascript