Question d’entretien chez Arista Networks

An average difficulty problem on leetcode