Classical problem of the linked list