“Palindrome number defined as the number in which the result is same hen the number/digit/result is reversed”. Example: 1. 52325. 2. GADAG. 1. Here in example 1. we can see that 5,2 is mentioned at first and center number is 3, where as last two numbers are…