solve: reverse integer