Solution for Reverse Linked List.