Accenture interview question

Write code for palindrome no