Bloomberg interview question

Reversing a linked list using pointers in C++