SLB interview question

dtect cycles in a linked list