Deloitte interview question

Reverse a linked list using C++