Pergunta de entrevista da empresa Apple

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