Driver program
head = newNode ( " Geeksforgeeks " ) NEW_LINE head . next = newNode ( " a " ) NEW_LINE head . next . next = newNode ( " computer " ) NEW_LINE head . next . next . next = newNode ( " science " ) NEW_LINE head . next . next . next . next = newNode ( " portal " ) NEW_LINE head . next . next . next . next . next = newNode ( " for " ) NEW_LINE head . next . next . next . next . next . next = newNode ( " geeks " ) NEW_LINE print ( " List ▁ before ▁ reverse : ▁ " ) NEW_LINE printList ( head ) NEW_LINE head = reverse ( head ) NEW_LINE print (   " List after reverse :   " ) NEW_LINE printList ( head ) NEW_LINE