Amazon Interview Question

Reverse the linked list with a given key