Update linkedList.java

Rec and Iterative Reverse