Function which returns new linked list
Node * newList ( Node * root1 , Node * root2 ) { Node * ptr1 = root1 , * ptr2 = root2 , * ptr ; Node * root = NULL , * temp ; while ( ptr1 != NULL ) { temp = new Node ; temp -> next = NULL ;