solved [reverse linked list 2]