Odd Even Linked List Leetcode Solution Python