Function to print nodes in a given doubly linked list
void printList ( Node * head ) { if ( head == NULL ) { cout << " Empty ▁ list STRNEWLINE " ; return ; } while ( head != NULL ) { cout << head -> data << " ▁ " ; head = head -> next ; } }