Pergunta de entrevista da empresa Amazon

3. Design an array that can set all the elements with the same value with O(1) time complexity