Pergunta de entrevista da empresa MongoDB

Reverse an integer without turning it into a String.