Goldman Sachs interview question

Software engineering interwiev asked about reverse linked list