My solution to Reverse Integer