Reorder List Leetcode Solution Python