Linked List Problems On Leetcode Python