HCLTech Interview Question

told me to write a program on reversing a number