Qualcomm interview question

Linked list manipulation, big/little endian conversion