Teradata interview question

Program to find loop in linked list