Design O(1) Randomized Multiset | LinkedIn Interview Question