Qualcomm Interview Question

1. Reverse the linked list.