A preliminary python version solutions for leetcode