Cyera Interview Question

to implement a data structure that has these methods: set (value, index) get(index) setAll(value) the functions need to be O(1)