Pergunta de entrevista da empresa Qualcomm

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