Pregunta de entrevista de Apple

Define a class for a linked list and write a method to delete the nth node.