Bloomberg Interview Question

Reversing an integer