Qualcomm interview question

Reverse Linked List