Solution for Reverse Integer