Count the number of digits of palindrome numbers in an array
Given an array arr[] with N integers. The task is to count all the digits of all palindrome numbers present in the array.Examples: Input: arr[] = {121, 56, 434} Output: 6 Only 121 and 434 are palindromes and digitCount(121) + digitCount(434) = 3 + 3 = 6Input: arr[] = {56, 455, 546, 234} Output: 0 Ap