Question d’entretien chez Philips

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