Linked List Rev with curr, loop and next pointers in Java