Return true if an integer x reads the same forwards and backwards. Two approaches — a string two-pointer check, and a no-string trick that reverses only the second half.
x