Leetcode problems python