Concept Flow - Insert at Beginning of Doubly Linked List
Create new node
Set new_node.next = head
If head != null
Yes
Set head.prev = new_node
Set head = new_node
Done
The new node is created and linked before the current head. If the list is not empty, the old head's previous pointer is updated. Finally, head points to the new node.
