Design O(1) Randomized Multiset | LinkedIn Coding Question