reverseLinkedList iterative and recursive