Rally Health interview question

Determine cycle in a list