Qualcomm Interview Question

How to reverse a LinkedList in C++/C?