NETGEAR interview question

Code and Explain the logic of a palindorme number