Question d’entretien chez Amazon

Reconstruct the set data structure with random access.