Solve Leetcode by Python