Pergunta de entrevista da empresa JFrog

write your own structure where get , set and setAll will be executed in constant time O(n)