NETGEAR Interview Question

Code and Explain the logic of a palindorme number