Cracking the Coding Interview solutions in Python