Pergunta de entrevista da empresa SAP

Find cycle in linked list both iteratively and recursively