GE HealthCare interview question

Program to detect a loop in the Linked List.