Hexaware Technologies interview question

Single Inheritance and reverse a number