Bloomberg Interview Question

how to remove a node with a target value in a linked list