Elbit Systems interview question

implement get(), set(), setall() in o(1)