Arista Networks Interview Question

How do you reverse a singly-linked list? (Write the actual C program that can compile and run!)