Publicis Sapient Interview Question

Check for loop in a linked list