Walmart Global Tech interview question

Detect cycle in a linked list without extra space