Question d’entretien chez Cyera

Describe how would you implement a data structure with setAll method with O(1) time efficiency.