Ericsson Interview Question

write a sample function to delete a node in linked list