accepted palidrome number

with better solution inside