Reverse List in O(n) time

Reverse List in O(n) time