Mohit Sharma interview question

How to reverse linked list in java?