Can you explain meaning of these lines in -> https://www.geeksforgeeks.org/reverse-a-list-in-groups-of-given-size/

if (next != NULL)  
head->next = reverse(next, k);  


return prev;

@guptanikhil898 we have to reverse in groups of size k so after reversing a grp just calling on the next grp. its also mentioned in the comment.

specifically, what will be stored in head->next can you please show diagramatically
head->next = reverse(next, k);

@guptanikhil898 recursively call ho raha hai reverse call hota rahega aakhir mein return prev hoga toh pehle head mein prev phir har step pe connect hota rahega ek baar dry run karke dekho chohte input ke liye aajayega samajh