Concept Flow - Insert at Specific Position in Doubly Linked List
Create new node
Check if position is 1
Insert at [Start at head
Traverse to position-1
Adjust pointers: prev, new_node, next
Insertion done
Create a new node, then either insert at head if position is 1, or traverse to the node before the position and adjust pointers to insert the new node.
