Bloomberg Interview Question

how to reverse a linked list