Solved Reverse Integer problem