'''

int reverseInteger(int input){

int output=0;

int sign=1;

if (input<0) sign =-1;

input = input*sign; //loosing the sign of input number. we will later multiply output and

//sign to generate appropriately signed integer.

```
while (input>0){ //if we hadn't lost the sign of input above, negative input would not enter this loop ever!
output = output*10 + input%10;
input = input/10;
} // end of while loop. At this point, input=0, output has all reversed digits. We just need to multiply output
//and sign to get the correct sign of the output
```

System.out.println("output");

return output*sign;

}// end of solution

'''