Johnson Controls interview question

Delete a node in a Linked list which is passed a function.