Amazon Interview Question

They asked me to Reverse an integer