Linked List Random Node Leetcode Solutions Python