Capgemini interview question

Write a code on java to check whether no is pallindrome or not