Instructure interview question

How to reverse a linked list (JavaScript)