update reverse linked lists ii solution