BrowserStack interview question

HLD question on how to optimize the queue implementation, some problem on bit , discussion on previous work regarding HLD only.