S&P Global Interview Question

Reverse a linked list.