Dell Technologies Interview Question

Write an algorithm to reverse a one direction linked list.