Infosys Interview Question

Code to reverse a number