C++ solutions for the problems presented in Cracking The Coding Interview book