Cracking the Coding Interview exercises in Python