Then we'll do head.next = newHead;, which will set the current node's next to point backwards.
xxxxxxxxxxnextNode = 4// <- 8, 4OUTPUT
Results will appear here.
Then we'll do head.next = newHead;, which will set the current node's next to point backwards.
xxxxxxxxxxnextNode = 4// <- 8, 4