Solutions for "Cracking the Coding interview V5".
Python version.