Power2SME interview question

found loop in linked list and remove them