Domanda di colloquio di Vannevar Labs

Leetcode question to do with queue data structure