Question d’entretien chez Retail Insights

finding the number is Palindrome or not in javascript