Bloomberg Interview Question

Reversing a linked list using pointers in C++