Amazon interview question

They asked me to Reverse an integer