Domanda di colloquio di Cyera

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