Infosys Interview Question

Code related to palindrome number