Prolifics Interview Question

A simple C++ code to reverse an integer.