SAP interview question

OOP question with data structures.