Write the code segment which is used to insert a new Node, r…

Write the code segment which is used to insert a new Node, referenced by the reference variable newNode, between the nodes referenced by the reference variables prev and curr in a linear linked list.  Assume that prev and curr have already been “moved into position” for the insertion operation.  (5 points)