Create reverse a linkedlist with three pointers