Domanda di colloquio di Affirm

Very similar to Leetcode 380 Insert Delete GetRandom O(1)