Domanda di colloquio di Arista Networks

An average difficulty problem on leetcode