O(n), basic linked list question