Vannevar Labs interview question

Leetcode question to do with queue data structure