Reverse Linked List Python Leetcode Question