Question d’entretien chez TikTok

data structure design with O(1) complexity.