and (rightnodethen point next to between (leftnodenewnode next -rightnodeit should look like this nowthe next node at the left should point to the new node leftnode next -newnodethis will put the new node in the middle of the two the new list should look like this similar steps should be taken if the node is being inserted at the beginning of the list while inserting it at the endthe second last node of the list should point to the new node and the new node will point to null