NVIDIA interview question

write a c code for finding a loop in a link list