Answers to questions from Cracking the Coding Interview