Pregunta de entrevista de Broadcom

Asked one question to implement a smart array that has 3 properties: 1. Can be initialized in constant time. 2. Can get array cell value in constant time. 2. Can set array cell value in constant time.