GE HealthCare interview question

Detect cycle in linked list.