Publicis Sapient Interview Question

Logic to detect cycle in linked list.