C3 AI interview question

Write a function that reverses a linked list.