Bloomberg interview question

Looping through and copying data from a linked list