Cognizant interview question

delete a node from a doubly linked list