Domanda di colloquio di Retail Insights

finding the number is Palindrome or not in javascript