python solution for leetcode judge problems.