solution: reverse integer 1&2