Cobalt Interview Question

Create a function that reverses a linked list.