Solve reverse integer problem in leetcode.
Solve #7 reverse integer problem in leetcode.