Infosys Interview Question

Find the Linked List Loop cycle and optimizes that.