It is mentioned in the question stem that "k is a positive integer and is **less than or equal to** the length of the linked list. If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is."

I meet test cases like this

[1,2]

k = 3

The expected answer is [2,1]???????