Google interview question

Write an algorithm to reverse a linked list