Goldman Sachs interview question

Reverse a linklist (c?