MathWorks Interview Question

Reverse a linked list in SC = O(1)