For the next 4 questions, write the lines of code necessary…

For the next 4 questions, write the lines of code necessary to turn the before picture into the after picture by modifying links between the nodes shown. You are not allowed to change any existing node’s data member value and you are not allowed to construct any new nodes. You are allowed to declare and use variables of type ListNode* (often called temp variables). You are writing code using the ListNode struct discussed in lecture: struct ListNode { int data; // data stored in this node ListNode* next; // link to next node in the list } As in the lecture examples, all lists are terminated by nullptr and the variables p and q have the value nullptr when they do not point to anything.