Domanda di colloquio di Arista Networks

Question about algorithm and data structure