C3 AI interview question

How do you reverse a linked list