Bloomberg interview question

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