solutions for the book [Cracking the Coding Interview, fourth edition], in C++