Python implementation of some leetcode example problems