Pergunta de entrevista da empresa Ness Digital Engineering

How would you reverse a linked list What if had cycles