C++ solutions to the interview questions in Cracking the Coding Interview v5