Domanda di colloquio di TikTok

data structure design with O(1) complexity.