Pregunta de entrevista de Bloomberg

Looping through and copying data from a linked list