Solutions to "Cracking the Coding Interview" (5th Edition) in C++ and other random languages