Bloomberg Interview Question

reverse digits of an integer