Qualcomm interview question

Q- Reverse a link list.