Question d’entretien chez Amazon

Classic LC easy - medium data structures question.