Qualcomm Interview Question

Question related to linked list and pointers were asked