Question d’entretien chez Cisco

A basic data structure question and logic puzzle.