Accenture Interview Question

Write code for palindrome no