Pregunta de entrevista de AT&T

How to tell when a node list ends.