Qualcomm interview question

Linked list programming