Goldman Sachs Interview Question

Software engineering interwiev asked about reverse linked list