LeetCode: reverse integer