Answers to questions from "Cracking The Coding Interview" book