Question d’entretien chez Amazon

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