Accenture interview question

Reverse a string Polymorphism Inheritance etc