Citadel Interview Question

reverse a linked list