This program detects there is a loop in the linked list or not.