better method for palindrome number

Signed-off-by: Mory Mobile <mory.mobile@gmail.com>