Domanda di colloquio di Amazon

Design question of a data structure for an application