Pergunta de entrevista da empresa ServiceNow

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

Resposta da entrevista

Sigiloso

16 de out. de 2015

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