Is there any better way to reverse an integer than this?
int reverse(int x) { int out=0; while(x) { if(out > INT_MA