Question d’entretien chez Arista Networks

Basic algorithm question in C.