NiCE Interview Question

reset all elements in a list in O(1)