• 注意反转数的算法
int reverse(int n){
    int reverseN = 0;
    while(n != 0){
        reverseN *= 10;
        reverseN += n % 10;
        n /= 10;
    }
    return reverseN;
}