Question d’entretien chez SAP

Data structure question and how to solve it efficiently.