LinkedList set Quiz

public class LinkedList<E> implements List<E> {
  /** Holds the head of the list. */
  private LinkedNode<E> head;
  /** The size of the list. */
  private int size;

  public E set(int index, E item) {
    // Your code goes here.
  }
}

The method must set the item at the given index.

Time remaining: