ServiceNow interview question

Write a program to check if a given Integer is Palindrome or not.

Interview Answer

Anonymous

16 Oct 2015

I used a strange method to implement: 1. Converted the Integer to String. 2. Checked the charAt(i) with charAt(str.length-1).