update solution for leetcode Reverse-Integer