Autodesk Interview Question

Reverse linked list in k groups