Goldman Sachs Interview Question

how to reverse a linked list