Answers to problems in Cracking The Coding Interview book