Persistent Systems Interview Question

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