ServiceNow Interview Question

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

Interview Answer

Anonymous

Oct 16, 2015

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