C++ answers to "Cracking The Coding Interview"