Chewy interview question

Reverse a linked list written in Java.