leetcode 75 python solutions