FactSet interview question

ways to reverse linked list