Pregunta de entrevista de Microsoft

Write the function to delete a node in a singly linked list.