Leetcode python solutions