Problems from Cracking the Coding Interview, solved in Python