SLK Group Interview Question

program to reverse a number