Pregunta de entrevista de HCLTech

told me to write a program on reversing a number