Rotate Linked List in blocks of size k by r

Hello I came across a question but couldn’t find proper solution on the internet.How to rotate a linked list in blocks of size k and each block should be rotated by r times clockwise.If the remaining blocks in the list are less than k they should still be rotated r times.How to do this question i am pretty confused.