TigerConnect Interview Question

Write a function to delete a node from a linked list.