Philips Interview Question

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