I wrote the code on Visual studio code:-
//add data at the begining... #include #include typedef struct node Node; struct node{