Vannevar Labs Interview Question

Leetcode question to do with queue data structure