Tesco interview question

Find and remove loop in linkedlist