Dailyhunt interview question

How to detect and remove loop in a linked list