Pergunta de entrevista da empresa Amazon

Implement 'set, get and set_all' functions on some data structure, all in O(1) time.