Domanda di colloquio di Orion Health

What data structure would you use for this problem?