Pergunta de entrevista da empresa Cyera

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