Leetcode Nested List Weight Sum Leetcode Python Easygui