Prolifics interview question

A simple C++ code to reverse an integer.