Reverse linked List I and II

The next writting will contain my solution for the following leetcode problems: and

These two are fairly simple linked list problems. to handle these type of problem is usually recommended to use a dummy node prev that points your current element.

Problem # 206. Reverse Linked List

Given the head of a singly linked list, reverse the list, and return the reversed list.