Introduction
Given a linked list of N nodes. The task is to reverse this list.
Approach
The approach is to use iteration and three pointers, previous, current and next. We set the current pointer to head and continue iteration.
We reverse the current pointer next to previous during the traversal and update current with the next pointer.