Bloomberg Interview Question

write code for deletion of a node in a single linked list