Autodesk interview question

Reverse linked list in k groups