Question d’entretien chez Bank Neo Commerce

I was asked to reverse an integer