Qualcomm interview question

1. Reverse the linked list.