Philips interview question

Write a program to reverse an integer. Don't use any inbuild functions