HashedIn by Deloitte Interview Question

given a linked list find whether there is loop or not