Morgan Stanley Interview Question

Reverse an Int