ANR Software interview question

Pyramid printing. Implementation of interface. Inheritance implementation etc.