Pregunta de entrevista de Ness Digital Engineering

How would you reverse a linked list What if had cycles