Amazon interview question

reverse a linked list, lc easy