Concept Flow - Insert at Specific Position in Doubly Linked List
Create new node with data
Check if position is 1
Insert at head
Traverse to position-1 node
Adjust pointers: new node prev and next
Adjust adjacent nodes pointers
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.
