FactSet Interview Question

ways to reverse linked list