Qualcomm interview question

Reverse a singly linked linked list