Given the head of a linked list, reverse the nodes k at a time and return the modified list. Nodes left over at the end (fewer than k ) stay in their original order. Input format Input is [list, k] , e.g. [[1,2,3,4,5],2] . ListNode is predefined.