IXL Learning interview question

Reverse a linked list