Qualcomm Interview Question

Bit manipulation in C, check for loops in a linked list