My practice with Python on Leetcode's problem set