Problems from "Cracking the Coding Interview" chapter 7 "Mathematics and
probability" implemented in python.