Question d’entretien chez Morgan Stanley

Which data structure is best to implement this?