CitiusTech Interview Question

WAP to reverse a number