Infosys interview question

Find the Linked List Loop cycle and optimizes that.