ByteDance Interview Question

Both rounds of the interview had technical challenges around a Medium on HackerRank. First problem was about creating a DataStructure capable of handling insertions and deletions all in O(1) as well as having a function that returns a random element.