Problems from Cracking the Coding Interview Book.