Question d’entretien chez Orion Health

What data structure would you use for this problem?