Domanda di colloquio di SAP

implement a data structure that support set, remove, setAll. all methods should be O(1) time complexity.