DP World interview question

2. Detect loop in singly linked list and delete it