edit leetcode: reverse linked list II