TartanHQ interview question

Question on linked list array