Code Snippet:Linked List Reversal