Pregunta de entrevista de Roblox

The second coding question seemed to require queues and a hashmap.