Microsoft Interview Question

Array with SetAll in O(1) method