Leetcode 399 Python Csdnb New Britain