Question d’entretien chez Amazon

Asked to fast solve a complex data structure problem