Amadeus Interview Question

Reverse the linked list in k blocks.