Amazon Interview Question

how to reversed the linked list