American Express interview question

Algo for Linked List cycle