Amazon Interview Question

reverse a linked list leetcode