Leetcode 399 Python Example Read