Google interview question

Q1 Reverse a linked list: