Question: In a doubly-lined list, each node points to both the next and previous nodes. The info in the each node is an integer and two pointers, one to the previous node and one to the next node.
Part 1: Define the node
Part 2: declare the variable required.
Part 3: write a function to insert a node after the head.
You need to define the node and declare the variable required and also prepare given function.