LTM Limited Interview Question

create a data structure with time complexity of O(1)