Ericsson interview question

write a sample function to delete a node in linked list