This function is in LinkedList class . Inserts a new node after the given prev_node . This method is defined inside LinkedList class shown above
public void insertAfter ( Node prev_node , int new_data ) {