Microsoft interview question

how to detect a loop in a linked list.