Question d’entretien chez Dell Technologies

Write an algorithm to reverse a one direction linked list.