current and next, to the head and head.next respectively.next is not null, perform the following steps:
a. Calculate the GCD of current.val and next.val.
b. Create a new node with the calculated GCD value.
c. Insert the new node between current and next.
d. Move current to next.
e. Update next to next.next.