GlobalLogic interview question

OPPS, Inheritance, design pattern etc.