Apple Interview Question

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