Question d’entretien chez GlobalLogic

They asked me to write a program to reverse a given number