int reverseNumber(int N) {
int reverseN = 0;
while (N > 0) {
reverseN = reverseN * 10 + N % 10;
N /= 10;
}
return reverseN;
int reverseNumber(int N) {
int reverseN = 0;
while (N > 0) {
reverseN = reverseN * 10 + N % 10;
N /= 10;
}
return reverseN;
}