Adding solution for: Reversing a singly-linked list.