Pergunta de entrevista da empresa Quantiphi

The coding question is Reverse a number. I solved it.