Pregunta de entrevista de Cisco

A basic data structure question and logic puzzle.