MulticoreWare Interview Question

Reverse the first k elements of a linked list.