1. initialize three pointers: prev to None, curr to the head of the linked list, and next to None.
2. Iterate through the linked list using a loop.
3. Inside the loop, before changing the next pointer of curr, store the next node in the next variable.
next_node = curr.next
4. Update the next pointer of curr to point to the previous node, i.e.,
curr.next = prev
5. Update the prev pointer to the current node and curr to the next node using the next variable.
_______________
_______________