Pergunta de entrevista da empresa Persistent Systems

Write pen-paper code having some classes and inheritance structure.