FactSet interview question

Issue in linked list code